# class PDFDoc



# STATIC MEMBERS

# static member read-only Producer

Type: String

Description:

# MEMBERS

# member version

Type: Number

# member read-only producer

Type: String

# member creator

Type: String

# member title

Type: String

# member read-only pages

Type: List

# member read-only pageCount

Type: Number

# member read-only layers

Type: List

# CONSTRUCTORS

# constructor PDFDoc()

Description:

# constructor PDFDoc(path)

Description:

Parameters:

  • path: (String) -

# FUNCTIONS

# function page(pageNumber)

Description:

Parameters:

  • pageNumber: (Number) -

Return:

(PDFPage) -

# function addPage(page)

Description: Add page to the end of the document.

Parameters:

# function addPage(index, page)

Description: Insert page at the specified index.

Parameters:

  • index: (Number) - Index the page is to be inserted at
  • page: (PDFPage) - Page to add.

# function addPages(pages)

Description: Add pages to the end of the document.

Parameters:

  • pages: (List) - Pages to add.

# function addPages(index, pages)

Description: Insert pages at the specified index.

Parameters:

  • index: (Number) - Index the pages are to be inserted at
  • pages: (List) - Pages to add.

# function createPage(mediaBox)

Description: Create a PDF page for this document. This action does not add the page to the document.

Parameters:

Return:

(PDFPage) - Returns the page created

# function close()

Description:

# function save(path)

Description:

Parameters:

  • path: (String) -
Last Updated: 12/20/2022, 8:12:45 AM