I am using a suitelet to render the custom Advance...
# suitescript
a
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
Check the Advanced PDF template for anything that has special characters like & that need to be urlencoded.
a
ok
s
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.