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.pdfGetViewerPreference
: Return an entry from the ViewerPreferences dictionary.
Image information
pdfGetImages
: Scan the images on a page.pdfGetNumImages
: Get the number of images on a page.pdfGetImageInfo
: Get information about an image.pdfGetImageMatrix
: Get an image matrix.pdfGetImageCompression
: Get the compression filter used on an image.pdfGetImageNumComponents
: Get the number of components per pixel for an image.pdfGetImageBitsPerComponent
: Get the number of bits per component for an image.pdfGetImageDecodeRange
: Get the decode range for an image color component.
Color spaces
pdfGetNumColorSpaces
: Get the number of PDF color space types.pdfGetColorSpaceName
: Get the name of a PDF color space type.
Extracting images
pdfGetImageBitmap
: Get an in-memory bitmap for an image.pdfSaveImageAsPBM
: Save an image as a PBM file.pdfSaveImageAsPGM
: Save an image as a PGM file.pdfSaveImageAsPPM
: Save an image as a PPM file.pdfSaveImageAsBMP
: Save an image as a BMP file.
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.