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.pdfGetPageSize
: Get the size of the specified page.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.pdfGetInfoString
: Get the content of a document info field.pdfGetViewerPreference
: Return an entry from the ViewerPreferences dictionary.
Printer list
pdfGetNumPrinters
: Get the number of available printers.pdfGetPrinterName
: Get a printer name.pdfGetPrinterNameW
: Get a printer name (Unicode).pdfGetNumBins
: Get the number of available paper bins/trays.pdfGetNumBinsW
: Get the number of available paper bins/trays (Unicode).pdfGetBinID
: Get a paper bin ID.pdfGetBinIDW
: Get a paper bin ID (Unicode).pdfGetBinName
: Get a paper bin name.pdfGetBinNameW
: Get a paper bin name (Unicode).pdfGetNumPapers
: Get the number of available paper sizes.pdfGetNumPapersW
: Get the number of available paper sizes (Unicode).pdfGetPaperID
: Get a paper size ID.pdfGetPaperIDW
: Get a paper size ID (Unicode).pdfGetPaperName
: Get a paper size name.pdfGetPaperNameW
: Get a paper size name (Unicode).pdfGetPaperSize
: Get a paper size.pdfGetPaperSizeW
: Get a paper size (Unicode).pdfGetNumMediaTypes
: Get the number of available media types.pdfGetNumMediaTypesW
: Get the number of available media types (Unicode).pdfGetMediaTypeID
: Get a media type ID.pdfGetMediaTypeIDW
: Get a media type ID (Unicode).pdfGetMediaTypeName
: Get a media type name.pdfGetMediaTypeNameW
: Get a media type name (Unicode).pdfPrinterSupportsCollation
: Check to see if a printer supports collation.pdfPrinterSupportsCollationW
: Check to see if a printer supports collation (Unicode).pdfPrinterSupportsColor
: Check to see if a printer supports color printing.pdfPrinterSupportsColorW
: Check to see if a printer supports color printing (Unicode).pdfPrinterSupportsDuplexing
: Check to see if a printer supports duplex printing.pdfPrinterSupportsDuplexingW
: Check to see if a printer supports duplex printing (Unicode).pdfPrinterSupportsQuality
: Check to see if a printer supports the print quality setting.pdfPrinterSupportsQualityW
: Check to see if a printer supports the print quality setting (Unicode).pdfPrinterSupportsPostScriptW
: Check to see if a printer supports PostScript (Unicode).
Printing
pdfPrint4
: Print a PDF file.pdfPrintToDC2
: Print a PDF file to a DC.
Print job API
pdfPrintStartJob
: Start a print job.pdfPrintToJob
: Add pages to a print job.pdfPrintBlankPageToJob
: Add a blank page to a print job.pdfPrintJobPageCount
: Get the number of pages printed so far in a print job.pdfPrintFinishJob
: Finish a print job.
Printing parameters
pdfPrintResetParams
: Reset all printing parameters to their default values.pdfPrintSetPrinter
: Set the printer name.pdfPrintSetBin
: Set the paper bin ID.pdfPrintSetPaper
: Set the paper size/type ID.pdfPrintSetCustomPaperSize
: Set a custom paper size.pdfPrintSetPaperMatch
: Match paper to page size.pdfPrintSetMediaType
: Set the media type ID.pdfPrintSetPaperOrientation
: Pass page orientation info to the printer.pdfPrintSetPrintToFile
: Set the name for the print output file.pdfPrintSetQueueName
: Set the name to show in the print queue.pdfPrintSetPages
: Set the pages to print.pdfPrintSetFirstPage
: Set the first page to print.pdfPrintSetLastPage
: Set the last page to print.pdfPrintSetRectangle
: Set the rectangular window of the page to be printed.pdfPrintSetScale
: Set the horizontal and vertical scale factors.pdfPrintSetOffset
: Set the offset from the lower-left corner of the paper.pdfPrintSetRotate
: Set the page rotation.pdfPrintUsePrintableArea
: Scale pages to fit the printable area.pdfPrintExpandSmallPages
: Scale up pages that area smaller than the paper.pdfPrintForceGDI
: Force the print operation to go through GDI.pdfPrintForceImage
: Force printing each page as an image.pdfPrintRawSpoolFile
: Force the spool file to be in raw format.pdfPrintSetDuplex
: Set the duplexing mode.pdfPrintForceMono
: Force printing in monochrome.pdfPrintForceColor
: Force printing in color.pdfPrintSetDPI
: Set the print resolution.pdfPrintSetQuality
: Set the print quality.pdfPrintSetCopies
: Set the number of copies.pdfPrintSetCollate
: Set the collation mode.pdfPrintSetEmulatedMultiCopy
: Enable/disable emulated multi copy mode.pdfPrintSetPriority
: Set the print job priority.pdfPrintSetOwner
: Set the print job owner.pdfPrintSetNotifyName
: Set the print job notification name.pdfPrintSetStartPaused
: Start the print job paused.
PostScript options
pdfPrintSetPSCustomDocSetup
: Set a string to be included in the PostScript DocSetup section.pdfPrintSetPSCustomPageSetup
: Set a string to be included in the PostScript PageSetup section.
Print information
pdfGetJobID
: Get the job ID for the most recent print job.pdfPrintGetPageCount
: Get the page count for the most recent print call.
Text overlays
pdfAddOverlayText
: Add an overlay text item.pdfClearOverlayText
: Clear all overlay text items.
GDI overlays
pdfSetGDIOverlayCbk
: Set a function to be called at the end of each page.
Print status and aborting
pdfSetPrintStatusCbk
: Set a function to be called periodically while printing.pdfAbortPrint
: Abort an in-progress print job.
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.pdfClearWin32ErrorInfo
: Clear Win32 API error function and error code.pdfGetWin32ErrorFunc
: Return the name of the last Win32 API function to fail.pdfGetWin32ErrorCode
: Return the error code of the last Win32 API function to fail.pdfSetTextEncoding
: Set the encoding to use for text output.pdfFreeMemory
: Free memory allocated by the library.