Looks like it's not an option ```Print Advanced PD...
# advancedpdf
k
Looks like it's not an option
Copy code
Print Advanced PDF Invoice Fails with 'Error on line XXX, column XXX in template'
Published 08/15/2018 08:25 AM   |    Updated 05/22/2020 08:07 AM   |    Answer Id: 76877
Applies To
Product:  NetSuite 2019.2

Scenario
During Advanced PDF printing of any transaction the 'Error on line XXX, column XXX in template' message appears. However, there is no HTML/Freemarker syntax error within the Advanced HTML/PDF Template.

Solution
This could be caused by any Rich Text Field which is used within the Advanced PDF/HTML Template. Rich Text formatting by a Custom Fields is invisible for users but not for Freemarker.

When a record is opened in Edit mode, there are options for the Rich Text Field editing. After clicking on the first icon Formatted Edit Mode the HTML source code of that Rich Text Field content.

Here are the steps, how to be able to print the Advanced PDF Invoice after changing the Invoice Form:

Disable the Rich Text Editing by navigating to Home > Set Preferences > Appearance > Entry Forms > Enable Rich Text Editing = F

Go back to your record, refresh the record and check the Rich Text Field content. The text could look like:

<p> </p><p style="margin: 0in 0in 0pt;"><span style='line-height: 107%; font-family: "Arial",sans-serif; font-size: 8pt;'></span><br></p>

Update the text by deleting all HTML tags

Save the record