render.xmlToPdf(options)
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.
Note:
File size cannot exceed 10MB. |
Returns |
|
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
10 units |
Module |
|
Since |
2015.2 |
Parameters
The options
parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
---|---|---|---|
|
xml.Document | string |
required |
The XML document or string to convert to PDF. For information and examples about using BFO tags to create this document or string, see the documentation for the corresponding SuiteScript 1.0 API, |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/render Module Script Samples.
//Add additional code
...
var pdfFile = render.xmlToPdf({
xmlString: xmlStr
});
...
//Add additional code