Hi All, Didn't fin help on Advanced PDF channel, h...
# suitescript
s
Hi All, Didn't fin help on Advanced PDF channel, hence posting a pdf related question here. I have a search result accessed in an Advanced PDF template, where a PO description contains a set of special characters. The description used is something like:- SERIES MID DRIVE CONVEYOR, 6" WIDE X 1'-.6" LONG WITH DRIVE SHAFT IN POSITION A, LOW SIDE PROFILE. As soon as the freemarker language encountered a double quote ("), it escaped and shifted the rest of the text from "LOW SIDE PROFILE" into the next <td>. Can any1 help me in making the freemarker to understand not to escape the data and print the string as it is in the record? Note: i tried : ?no_esc ?j_string ?html ?esc ?markup_string but none of them work. Please suggest a valid way to fix this issue.
l
You can try to use the html definition of the character "
it should be
&#34;
b
id try the opposite and escape your input
s
@battk the input comes from a saved search, and hence i access the direct search results as ${result.memo}
b
${result.memo?xml}
s
ok let me give it a try
@battk this neither worked.
b
is the pdf generated by suitescript
s
Can you try rendering as HTML instead of PDF? You may be able to see more clearly what is happening to the string that way by inspecting the HTML output.
s
@battk no it an Adavnced PDF/HTML Template created in UI and linked to type as "Saved Search". (Basically for printing the saved search results using the pdf template configured).
@scottvonduhn: Sorry but this is not through script. Its and Advanced PDF template.
s
Of course. What I meant was to change the print setting to HTML, rather than PDF. Then you can use your browser to inspect the output more easily (unless you have already tried that).
s
@scottvonduhn: Can you please let me know where to do this print setting? im using Chrome broswer.
s
It's a NetSuite preference. Go to Home > Set Preferences > Transactions, then check the box next to "Print Using HTML"
Just remember to change the setting back after your testing is done
s
@scottvonduhn: Thanks for the field help. But this didn't work in my case as my print template comes from a Saved Search and not transaction form. As per the field help: Clear this check box if you prefer to print transactions forms in PDF format. Printing PDF forms requires Acrobat Reader. Check this box to print transaction forms in HTML format.
s
Okay, your right it won't affect saved search templates. I can't recall if there is an easy way to print as HTML for those or not.
👍 1