render.xmlToPdf(options)

Note:

The content in this help topic pertains to SuiteScript 2.0.

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

file.File

Supported Script Types

Server scripts

For more information, see SuiteScript 2.x Script Types.

Governance

10 units

Module

N/render Module

Since

2015.2

Parameters
Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

options.xmlString

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, nlapiXMLToPDF(xmlstring) in SuiteScript 1.0 Documentation.

Syntax
Important:

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 

        

Related Topics

N/render Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices