HiQPdf Documentation

PdfDocument Class

HiQPdf Client for .NET Core
The PDF document class
Inheritance Hierarchy

SystemObject
  HiQPdfClientPdfDocument

Namespace:  HiQPdfClient
Assembly:  HiQPdfClient.NetCore (in HiQPdfClient.NetCore.dll) Version: 15.0.0
Syntax

public class PdfDocument

The PdfDocument type exposes the following members.

Constructors

  NameDescription
Public methodPdfDocument(String)
Constructs an empty PDF document using the default server port
Public methodPdfDocument(String, Byte)
Constructs a PDF document from data using the default server port
Public methodPdfDocument(String, String)
Constructs a PDF document from a file using the default server port
Public methodPdfDocument(String, UInt32)
Constructs an empty PDF document
Public methodPdfDocument(String, UInt32, PdfColorProfile)
Constructs an empty PDF document with a color profile
Public methodPdfDocument(String, UInt32, PdfColorSpace)
Constructs an empty PDF document with a color space
Public methodPdfDocument(String, UInt32, PdfStandard)
Constructs an empty PDF document with a standard
Public methodPdfDocument(String, UInt32, Byte)
Constructs a PDF document from data
Public methodPdfDocument(String, UInt32, String)
Constructs a PDF document from a file
Public methodPdfDocument(String, UInt32, Byte, String)
Constructs a PDF document from data of a password protected PDF document
Public methodPdfDocument(String, UInt32, String, String)
Constructs a PDF document from a password protected file
Public methodPdfDocument(String, UInt32, PdfStandard, PdfColorSpace, PdfColorProfile)
Constructs an empty PDF document with a standard, color space and color profile
Public methodPdfDocument(String, UInt32, String, Byte, String)
Constructs a PDF document from data of a password protected PDF document using a server password
Public methodPdfDocument(String, UInt32, String, String, String)
Constructs a PDF document from a password protected file using a server password
Public methodPdfDocument(String, UInt32, String, PdfStandard, PdfColorSpace, PdfColorProfile)
Constructs an empty PDF document with a standard, color space and color profile using a server password
Top
Properties

  NameDescription
Public propertyCompress
This property controls the content streams compression in the PDF document. By default the content streams are compressed to reduce the size of the generated PDF document
Public propertyFooter
The PDF document footer
Public propertyForm
The PDF form of this PDF document
Public propertyHeader
The PDF document header
Public propertyImagesCompression
Controls the images compression percentage in the PDF document on a scale from 0 to 100. A 0 compression produces the best quality images which leads to larger PDF documents while a 100 compression produces low quality images and small PDF documents
Public propertyMargins
The PDF document margins
Public propertyPageCount
The number of document pages
Public propertyPages
The list of document pages
Public propertyPort
The server port number
Public propertyProperties
Controls the title, subject, keywords, author and the creation date of the PDF document
Public propertyRenderWithTransparency
Indicates if the resulted PDF can contain transparent objects. This property is true by default
Public propertySecurity
Exposes an object to control the PDF document security
Public propertySerialNumber
The serial number obtained after product purchase. Must be set before writing the document. If it is not set the library will work in evaluation mode
Public propertyServer
The server IP or name
Public propertyServerPassword
The password to access the server if the server is password protected
Public propertyTableOfContents
Controls the automatically generated table of the contents for the converted HTML document
Public propertyViewer
Controls the PDF viewer preferences
Top
Methods

  NameDescription
Public methodAddChildOutline
Adds a child outline with the given parent in the outline hierarchy
Public methodAddDigitalSignature
Adds a digital signature to a PDF document in the given PDF page
Public methodAddDocument(Byte)
Adds a PDF from data to the end of this document
Public methodAddDocument(String)
Adds a PDF file to the end of this document
Public methodAddDocument(Byte, String)
Adds a password protected PDF from data to the end of this document
Public methodAddDocument(Int32, Byte)
Inserts a PDF from data starting at a given page index in this document
Public methodAddDocument(Int32, String)
Inserts a PDF file starting at a given page index in this document
Public methodAddDocument(String, String)
Adds a password protected PDF file to the end of this document
Public methodAddDocument(Int32, Byte, String)
Inserts a password protected PDF from data starting at a given page index in this document
Public methodAddDocument(Int32, String, String)
Inserts a password protected PDF file starting at a given page index in this document
Public methodAddDocument(Byte, Boolean, Boolean, Boolean)
Adds a PDF from data to the end of this document and optionally applies the header and footer of this document to added PDF
Public methodAddDocument(String, Boolean, Boolean, Boolean)
Adds a PDF file to the end of this document and optionally applies the header and footer of this document to added PDF
Public methodAddDocument(Byte, String, Boolean, Boolean, Boolean)
Adds a password protected PDF from data to the end of this document and optionally applies the header and footer of this document to added PDF
Public methodAddDocument(Int32, Byte, Boolean, Boolean, Boolean)
Inserts a PDF from data starting at a given page index in this document and optionally applies the header and footer of this document to inserted PDF
Public methodAddDocument(Int32, String, Boolean, Boolean, Boolean)
Inserts a PDF file starting at a given page index in this document and optionally applies the header and footer of this document to inserted PDF
Public methodAddDocument(String, String, Boolean, Boolean, Boolean)
Adds a password protected PDF file to the end of this document and optionally applies the header and footer of this document to added PDF
Public methodAddDocument(Int32, Byte, String, Boolean, Boolean, Boolean)
Inserts a password protected PDF from data starting at a given page index in this document and optionally applies the header and footer of this document to inserted PDF
Public methodAddDocument(Int32, String, String, Boolean, Boolean, Boolean)
Inserts a password protected PDF file starting at a given page index in this document and optionally applies the header and footer of this document to inserted PDF
Public methodAddFormField(PdfFormField)
Adds a form field after the last PDF object rendered
Public methodAddFormField(PdfFormField, Single)
Adds a form field at the given vertical offset after the last PDF object rendered
Public methodAddFormField(PdfFormField, Single, Single)
Adds a form field at the given horizontal and vertical offset after the last PDF object rendered
Public methodAddFormField(PdfFormField, Single, Boolean, Single, Boolean)
Adds a form field at a given X and Y position in PDF page where the last object was rendered. The position can be absolute in PDF page or relative to last object rendered
Public methodAddFormField(PdfFormField, Single, Boolean, Boolean, Single, Boolean, Boolean)
Adds a form field to this document at the given X and Y location in the PDF page where the last element rendering ended. The location can be absolute in PDF page or relative as an offset from the position where the last element rendering ended.
Public methodAddPage
Adds a new page with the default size, orientation and margins to the end of this document
Public methodAddPage(PdfMargins)
Adds a new page with the default size and orientation and the given margins to the end of this document
Public methodAddPage(PdfPageSize, PdfMargins)
Adds a new page with the default orientation and the given size and margins to end of this document
Public methodAddPage(PdfPageSize, PdfMargins, PdfPageOrientation)
Adds a new page with the given size, margins and orientation at the end of this document
Public methodAddPage(PdfPageSize, PdfMargins, PdfPageOrientation, PdfPageRotation)
Adds a new page with the given size, margins, orientation and rotation at the end of this document
Public methodAddPageAtIndex
Adds a new page with the given size, margins, orientation and rotation at the given index. The first page index is 0
Public methodAddTopOutline
Adds a top level outline in document
Public methodClose
Call this method to release the document resources
Public methodCreateAttachmentFromData(Byte, String)
Creates an attachment in PDF document from the given data
Public methodCreateAttachmentFromData(Byte, String, String)
Creates an attachment in PDF document from the given data
Public methodCreateAttachmentFromData(PdfPage, RectangleFloat, PdfAttachIconType, Byte, String)
Creates an attachment in PDF document from the given data and an icon for attachment in the given rectangle in the given PDF page
Public methodCreateAttachmentFromData(PdfPage, RectangleFloat, PdfAttachIconType, Byte, String, String)
Creates an attachment in PDF document from the given data and an icon for attachment in the given rectangle in the given PDF page
Public methodCreateAttachmentFromFile(String)
Attaches the given file to PDF document
Public methodCreateAttachmentFromFile(String, String)
Attaches the given file to PDF document
Public methodCreateAttachmentFromFile(PdfPage, RectangleFloat, PdfAttachIconType, String)
Attaches the given file to the PDF document and creates an icon for the attachment in the given rectangle in the given PDF page
Public methodCreateChildOutline
Creates a child outline with the given parent in the outline hierarchy
Public methodStatic memberCreateColorProfilePdf
Creates a PDF document with a given color profile
Public methodStatic memberCreateColorSpacePdf
Creates a PDF document with a given color space
Public methodCreateFileLink
Creates link to a file in the given PDF page and the given bounds
Public methodCreateFontFromData
Creates a system font from font data with given size
Public methodCreateFontFromName
Creates a PDF font based on a font family name with given size and embedding option
Public methodCreateFooterCanvas
Creates a footer canvas and assigns it to Footer property of the document. The width of the footer is given by the first page of the document
Public methodCreateHeaderCanvas
Creates a header canvas and assigns it to Header property of the document. The width of the header is given by the first page of the document
Public methodCreatePdfLink
Constructs a link in the given PDF page from the given rectangle to the given destination
Public methodCreateRepeatedCanvas
Creates a canvas to be repeated on each PDF page in the given bounding box
Public methodCreateStandardFont
Creates a PDF font from the given standard Type 1 font with given size
Public methodStatic memberCreateStandardPdf
Creates a PDF document with a given PDF standard
Public methodCreateTextNote
Constructs a text note in the given PDF page at the given location and with the given text
Public methodCreateTopOutline
Creates a top level outline in document
Public methodCreateUriLink
Constructs a link in the given PDF page from the given rectangle to the resource given by the the destination URI
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFromData(String, Byte)
Loads a PDF document from data and returns the created PDF document using the default server port
Public methodStatic memberFromData(String, UInt32, Byte)
Loads a PDF document from data and returns the created PDF document
Public methodStatic memberFromData(String, UInt32, Byte, String)
Loads a password protected PDF document from data and returns the created PDF document
Public methodStatic memberFromData(String, UInt32, String, Byte, String)
Loads a password protected PDF document from data and returns the created PDF document using a server password
Public methodStatic memberFromFile(String, String)
Loads a PDF document from a file and returns the created PDF document using the default server port
Public methodStatic memberFromFile(String, UInt32, String)
Loads a PDF document from a file and returns the created PDF document
Public methodStatic memberFromFile(String, UInt32, String, String)
Loads a password protected PDF document from a file and returns the created PDF document
Public methodStatic memberFromFile(String, UInt32, String, String, String)
Loads a password protected PDF document from a file and returns the created PDF document using a server password
Public methodStatic memberFromStream(String, Stream)
Loads a PDF document from a stream and returns the created PDF document using the default server port
Public methodStatic memberFromStream(String, UInt32, Stream)
Loads a PDF document from a stream and returns the created PDF document
Public methodStatic memberFromStream(String, UInt32, Stream, String)
Loads a password protected PDF document from a stream and returns the created PDF document
Public methodStatic memberFromStream(String, UInt32, String, Stream, String)
Loads a password protected PDF document from a stream and returns the created PDF document using a server password
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetPage
Retrieves the PDF page at the given index
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOfPage
Retrieves the index of a PDF page in pages collection
Public methodLayout(PdfObject)
Adds a PDF object after the last PDF object rendered
Public methodLayout(PdfObject, Single)
Adds a PDF object at the given vertical offset after the last PDF object rendered
Public methodLayout(PdfObject, Single, Single)
Adds a PDF object at the given horizontal and vertical offset after the last PDF object rendered
Public methodLayout(PdfObject, Single, Boolean, Single, Boolean)
Adds a PDF object at a given X and Y position in PDF page where the last object was rendered. The position can be absolute in PDF page or relative to last object rendered
Public methodLayout(PdfObject, Single, Boolean, Boolean, Single, Boolean, Boolean)
Adds a PDF page element to this document at the given X and Y location in the PDF page where the last element rendering ended. The location can be absolute in PDF page or relative as an offset from the position where the last element rendering ended.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetOpenAction
Set an action a PDF viewer will execute when the document is opened. An action can be the submit or reset of the PDF form, the execution of a JavaScript code or the jump to a destination in the PDF document
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteToFile
Writes this PDF document to the output file given by the parameter
Public methodWriteToMemory
Writes the PDF document in a memory buffer and return the memory buffer
Public methodWriteToStream
Writes the PDF document to the given output stream
Top
See Also

Reference