Modules

filter

 

Objects/Functions

module (N/render)

SuiteScript 2.0

render.xmlToPdf(options)

{render}.xmlToPdf({xmlString: {xml.Document | string*}})

N/render Module
render.xmlToPdf()
Method Description: Method used to pass XML to the Big Faceless Organization (BFO) tag library (which is stored by NetSuite), and return a PDF file. BFO is used in NetSuite. For version details, see Third-Party Products Used in Advanced Printing. File size cannot exceed 10MB.
Returns: file.File
Supported Script Types: Server-side scripts For more information, see SuiteScript 2.0 Script Types.
Governance: 10 units
Module: N/render Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=render.xmlToPdf(options)

Example:

// Code Example 1
//Add additional code
//...
var pdfFile = render.xmlToPdf({
xmlString: xmlStr
});
//...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_459185424803.html