I am using a suitelet to render the custom Advanced pdf/html template when a button is clicked. But when the pdf file is opened the I am getting the following error "Failed to load PDF document". Any thoughts how to fix this ??
e
Eric B
07/09/2020, 8:33 PM
Check the Advanced PDF template for anything that has special characters like & that need to be urlencoded.
a
Arun Dasari
07/09/2020, 9:06 PM
ok
s
suitedev
07/10/2020, 7:46 AM
Make sure you are including the correct header in the response. It can also be an issue if you didn’t include ‘.pdf’ in the file name when it was created? — Would want to see it happen to get into greater detail.