Came across a weird issue after updating to NetSuite 2025.1. Our PDF Printing function was showing the underlying code for the PDF instead of rendering the PDF.
Looked at many possible issues and discovered that it was in our header:
old code had
Found the solution on Reddit. Posted to a StackOverflow: pdf generation - How to Change NetSuite 2025.1 PDF Renderer Back to Previous Instead of BFO? - Stack Overflow
Looked at many possible issues and discovered that it was in our header:
old code had
name: 'Content-Type:',
value: 'application/pdf'
I removed the : and it worked as before
name: 'Content-Type',
value: 'application/pdf'
Comments
Post a Comment