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.pdfGetVersion
: Get the PDF version number.pdfFileIsDamaged
: Check to see if the PDF file is damaged.pdfGetViewerPreference
: Return an entry from the ViewerPreferences dictionary.pdfUsesJavaScript
: Returns non-zero if the PDF document uses JavaScript.
Analyzing pages
pdfAnalyzePages
: Analyze one or more pages.
Accessing the statistics
pdfGetNumImages
: Get the number of images on the analyzed page(s).pdfGetNumTextStrings
: Get the number of text strings on the analyzed page(s).pdfGetNumStrokes
: Get the number of strokes on the analyzed page(s).pdfGetNumFills
: Get the number of fills on the analyzed page(s).pdfGetNumColorSpaces
: Get the number of PDF color space types.pdfGetColorSpaceName
: Get the name of a PDF color space type.pdfGetNumColorSpaceObjects
: Get the number of objects drawn in a particular color space type.pdfGetNumProcessColorObjects
: Get the number of objects drawn in the process colors.pdfGetNumCustomColors
: Get the number of custom (spot) colors.pdfGetCustomColorName
: Get the name of a custom color.pdfGetCustomColorCMYK
: Get the CMYK value of a custom color.pdfGetNumCustomColorObjects
: Get the number of objects drawn in a custom color.
Parameters
pdfSetBlackThreshold
: Set the threshold for black mapping.pdfSetConvertCustomColors
: Enable/disable conversion of custom colors to CMYK.pdfSetExamineImagePixels
: Enable/disable examination of image pixels.
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.