Functions
Setup & configuration
pdfInitLibrary
: Initialize the library.pdfCloseLibrary
: Free all resources allocated by pdfInitLibrary.pdfLibraryVersion
: Retrieve the library version number.pdfSetConfig
: Process a configuration command.
Opening & closing PDF files
pdfLoadFile
: Load a PDF file from disk.pdfLoadFileW
: Load a PDF file from disk with a Unicode file name.pdfLoadFileWithPassword
: Load a PDF file from disk, with a password.pdfLoadFileWithPasswordW
: Load a PDF file from disk with a Unicode file name, with a password.pdfLoadMem
: Load a PDF file from a memory buffer.pdfLoadMemWithPassword
: Load a PDF file from a memory buffer, with a password.pdfFree
: Free all memory associated with a PDF handle.
PDF file information
pdfGetNumPages
: Get the number of pages.pdfGetPageWidth
: Get the width of the specified page.pdfGetPageHeight
: Get the height of the specified page.pdfGetPageBoxXMax
: Get the maximum x coordinate of the specified page box.pdfGetPageBoxXMin
: Get the minimum x coordinate of the specified page box.pdfGetPageBoxYMax
: Get the maximum y coordinate of the specified page box.pdfGetPageBoxYMin
: Get the minimum y coordinate of the specified page box.pdfGetPageRotation
: Get the default rotation for the specified page.pdfGetPageUserUnit
: Get the UserUnit scaling factor for the specified page.pdfGetFormType2
: Get the type of form in the PDF file.pdfOkToExtractText
: Check to see if the PDF file allows text extraction.pdfOkToPrint
: Check to see if the PDF file allows printing.pdfOkToChange
: Check to see if the PDF file allows changing.pdfOkToAddNotes
: Check to see if the PDF file allows adding notes.pdfFileIsDamaged
: Check to see if the PDF file is damaged.pdfCheckPageColorUsage
: Analyze a page for color usage.pdfGetViewerPreference
: Return an entry from the ViewerPreferences dictionary.pdfUsesJavaScript
: Returns non-zero if the PDF document uses JavaScript.
Converting to PostScript
pdfConvertToPSFile
: Convert a PDF file to a PostScript file.
PostScript parameters
pdfSetPSPaperType
: Set the PostScript paper type.pdfSetPSPaperSize
: Set the PostScript paper size.pdfSetPSMode
: Set the PostScript mode.pdfSetPSLevel
: Set the PostScript level.pdfSetPSEmbedType1Fonts
: Enable/disable embedding of Type 1 fonts.pdfSetPSEmbedTrueTypeFonts
: Enable/disable embedding of TrueType fonts.pdfSetPSEmbedCIDPostScriptFonts
: Enable/disable embedding of CID PostScript fonts.pdfSetPSEmbedCIDTrueTypeFonts
: Enable/disable embedding of CID TrueType fonts.pdfSetGenerateOPIComments
: Enable/disable generation of OPI comments.pdfSetPSHonorUserUnit
: Control use of the UserUnit setting.
Inserting custom PostScript code
pdfSetPSCustomDocSetup
: Insert custom PostScript code in the DocSetup section.
Layers
pdfGetNumLayers
: Get the number of layers.pdfGetLayer
: Get a layer handle.pdfGetLayerName
: Get the name of a layer.pdfGetLayerVisibility
: Get the visibility state of a layer.pdfSetLayerVisibility
: Set the visibility state of a layer.pdfGetLayerViewState
: Get the suggested state of a layer for viewing mode.pdfGetLayerPrintState
: Get the suggested state of a layer for printing mode.pdfGetLayerOrderRoot
: Get the root of the layer display order tree.pdfGetLayerOrderIsName
: Check to see if a layer display order node is a name.pdfGetLayerOrderName
: Get the name of a layer display order node.pdfGetLayerOrderLayer
: Get the layer associated with a layer display order node.pdfGetLayerOrderNumChildren
: Get the number of children attached to a layer display order node.pdfGetLayerOrderChild
: Get a child of a layer display order node.
Embedded files
pdfGetNumEmbeddedFiles
: Get the number of embedded files.pdfGetEmbeddedFileName
: Get the name of an embedded file.pdfSaveEmbeddedFile
: Save an embedded file.pdfSaveEmbeddedFileW
: Save an embedded file with a Unicode file name.pdfGetEmbeddedFileMem
: Get an embedded file in a memory buffer.
Miscellaneous
pdfSetErrorCbk
: Provide a function to be called whenever an error is reported.pdfSetTextEncoding
: Set the encoding to use for text output.pdfFreeMemory
: Free memory allocated by the library.