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.
Creating & destroying viewers
pdfCreateViewer
: Create a PDF viewer.pdfDestroyViewer
: Destroys a PDF viewer.
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.pdfLoadStream
: Load a PDF file from a callback-based stream.pdfLoadStreamWithPassword
: Load a PDF file from a callback-based stream.pdfCloseFile
: Close the currently open PDF file.
Saving PDF files
pdfSaveAs
: Save the currently open PDF file to disk.
Navigation
pdfGetNumPages
: Get the number of pages.pdfGetCurrentPageNum
: Get the currently displayed page number.pdfGetMidPageNum
: Get the page number at the middle of the window.pdfGotoPage
: Move to a specific page.pdfGotoFirstPage
: Move to the first page.pdfGotoLastPage
: Move to the last page.pdfGotoNextPage
: Move to the next page.pdfGotoPreviousPage
: Move to the previous page.pdfGotoNamedDestination
: Move to a named destination.pdfGoForward
: Move forward along the history list.pdfGoBackward
: Move backward along the history list.pdfScrollPageUp
: Scroll the display up.pdfScrollPageDown
: Scroll the display down.pdfScrollTo
: Scroll to a specific position.pdfScrollBy
: Scroll to a specific position.pdfGetScrollX
: Get the x coordinate of the current scroll position.pdfGetScrollY
: Get the y coordinate of the current scroll position.
Zoom factor and rotation angle
pdfSetZoom
: Change the zoom factor.pdfGetZoom
: Get the current zoom factor.pdfGetZoomPercent
: Get the current zoom factor as a percentage.pdfZoomToRect2
: Zoom to a specific rectangle.pdfZoomCentered
: Zoom to a specific rectangle.pdfZoomToCurrentWidth
: Zoom so that the current page horizontally fills the window.pdfSetRotate
: Change the page rotation.pdfGetRotate
: Return the current page rotation.
Page display mode
pdfSetDisplayMode
: Set the page display mode.pdfGetDisplayMode
: Get the current page display mode.
Page change callbacks
pdfSetPageChangeCbk
: Set a callback function for page changes (at top of window).pdfSetMidPageChangeCbk
: Set a callback function for page changes (in middle of window).
Coordinates
pdfConvertWindowToPDFCoords2
: Convert PDF coordinates to window coordinates.pdfConvertPDFToWindowCoords2
: Convert PDF coordinates to window coordinates.pdfGetWindowPageRange
: Get the range of pages intersected by a window coordinate rectangle.
Selection
pdfGetCurrentSelection2
: Get the current selection.pdfSetCurrentSelection2
: Change the selection.pdfClearSelection
: Clear the selection.pdfSetBlockSelectMode
: Select block selection mode.pdfSetLinearSelectMode
: Select linear selection mode.pdfSetSelectionColor
: Set the selection color.pdfEnableSelect
: Enable or disable selection.pdfSetSelectDoneCbk
: Set a callback function for selection.pdfGetSelectedText
: Get the currently selected text.pdfCopySelection
: Copy the current selection to the clipboard.
Keyboard and mouse callbacks
pdfSetKeyDownCbk
: Set a callback function for key-down events.pdfSetKeyUpCbk
: Set a callback function for key-up events.pdfSetKeyPressCbk
: Set a callback function for key-press events.pdfSetMouseDownCbk
: Set a callback function for mouse button-down events.pdfSetMouseUpCbk
: Set a callback function for mouse button-up events.pdfSetMouseDoubleClickCbk
: Set a callback function for mouse button double-click events.pdfSetMouseMoveCbk
: Set a callback function for mouse movement events.pdfSetMouseDownWinCbk
: Set a callback function for mouse button-down events with window coordinates.pdfSetMouseUpWinCbk
: Set a callback function for mouse button-up events with window coordinates.pdfSetMouseDoubleClickWinCbk
: Set a callback function for mouse button double-click events with window coordinates.pdfSetMouseMoveWinCbk
: Set a callback function for mouse movement events with window coordinates.pdfSetMouseWheelCbk
: Set a callback function for mouse wheel events.
Touch support
pdfEnableTouchPan
: Enable or disable touch panning.pdfEnableTouchZoom
: Enable or disable touch zooming.pdfSetTouchZoomCbk
: Set a callback function for touch zoom.
Hyperlinks
pdfEnableHyperlinks
: Enable or disable hyperlink support.pdfEnableExternalHyperlinks
: Enable or disable external hyperlink support.pdfOnLink2
: Check to see if a point is inside a hyperlink.pdfGotoLinkAt2
: Activate the link at the specified coordinates.pdfSetLinkClickCbk
: Set a callback function for clicks on hyperlinks.
Annotations
pdfOnAnnot
: Check for an annotation containing the specified point.pdfGetAnnotType
: Get the type of an annotation.pdfGetAnnotContent
: Get the content of an annotation.
Redrawing
pdfEnableRedraw
: Enable or disable window redraws.pdfSetRedrawCbk
: Set a callback function for window redraws.
Text find
pdfFind
: Find a text string.pdfFindNext
: Find the next occurrence of a text string.pdfFind2
: Find a Unicode text string.
Extracting text
pdfExtractTextFromPage
: Extract text from a specified rectangle.pdfSetTextEncoding
: Set the encoding to use for text extraction.pdfSetPhysicalLayoutTextMode
: Set physical layout mode for text extraction.pdfSetTableLayoutTextMode
: Set physical layout mode for text extraction.pdfSetDiscardDiagonalText
: Discard diagonal text when doing text extraction.pdfOkToExtractText
: Check to see if the PDF file allows text extraction.
Extracting graphics
pdfConvertPageToBitmap2
: Convert a page to a bitmap.pdfConvertRegionToBitmap2
: Convert a region of a page to a bitmap.
Highlighting regions
pdfAddRegion
: Add a highlighted region.pdfSetRegionLabel
: Update a highlighted region's label.pdfSetRegionResizable
: Make a highlighted region resizable or not.pdfDeleteRegion
: Delete a highlighted region.pdfDeleteAllRegions
: Delete all highlighted region.pdfGetNumRegions
: Get the current number of regions.pdfGetRegion
: Get a region handle.pdfGetSelectedRegion
: Get the selected region.pdfSetSelectedRegion
: Set the selected region.pdfMakeRegionVisible
: Make a region visible.pdfGetRegionInfo
: Get the parameters of a region.pdfLoadHighlightFile2
: Load a highlight file.pdfSetRegionSelectedCbk
: Set a callback function for region selection.pdfSetRegionDoubleClickCbk
: Set a callback function for region double-click events.pdfSetRegionChangedCbk
: Set a callback function for region changes.
PDF metadata
pdfGetInfoString
: Get the content of a document info field.pdfGetPDFVersion
: Get the PDF version number.pdfGetFileName
: Get the file name of the currently open PDF file.pdfGetFileNameW
: Get the file name of the currently open PDF file.
Page size and rotation
pdfGetPageWidth
: Get the width of the specified page.pdfGetPageHeight
: Get the height of the specified page.pdfGetPageBoxXMin
: Get the minimum x coordinate of the specified page box.pdfGetPageBoxYMin
: Get the minimum y coordinate of the specified page box.pdfGetPageBoxXMax
: Get the maximum x coordinate of the specified page box.pdfGetPageBoxYMax
: Get the maximum 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.
Other PDF file information
pdfFileIsDamaged
: Check to see if the PDF file is damaged.pdfGetFormType2
: Get the type of form in the PDF file.pdfUsesJavaScript
: Returns non-zero if the PDF document uses JavaScript.
Printing
pdfPrint
: Print the PDF file.pdfPrint3
: Print the PDF file.pdfPrintFile
: Prints a named PDF file.pdfStartPrintJob
: Start a print job.pdfPrintToJob
: Add pages to a print job.pdfFinishPrintJob
: Finish a print job.pdfAddPrintOverlayText
: Add a printing overlay text item.pdfClearPrintOverlayText
: Clear all printing overlay text items.pdfSetPrintGDIOverlayCbk
: Set a function to be called at the end of each printed page.pdfOkToPrint
: Check to see if the PDF file allows printing.pdfSetShrinkToPrintable
: Scale pages to fit the printable area.pdfSetPrintForceGDI
: Force the print operation to go through GDI.pdfSetPrintForceImage
: Force the print operation to print as images.pdfSetPrintRawSpoolFile
: Force the spool file to be in raw format.pdfSetPrintForceMono
: Force printing in monochrome.pdfSetPrintDPI
: Set the print resolution.pdfSetPrintBin
: Set the paper bin ID for printing.pdfSetPrintPaper
: Set the paper size/type ID for printing.pdfSetPrintEmulatedMultiCopy
: Enable/disable emulated multi copy mode for printing.pdfSetPrintStatusCbk
: Set a function to be called periodically while printing.
Printer information
pdfGetNumPrinters
: Get the number of available printers.pdfGetPrinterName
: Get a printer name.pdfGetNumPrinterBins
: Get the number of available paper bins/trays on a printer.pdfGetPrinterBinID
: Get a printer paper bin ID.pdfGetPrinterBinName
: Get a printer paper bin name.pdfGetNumPrinterPapers
: Get the number of available paper sizes on a printer.pdfGetPrinterPaperID
: Get a printer paper size ID.pdfGetPrinterPaperName
: Get a printer paper size name.
Page labels
pdfHasPageLabels
: Check if the PDF file has page labels.pdfGetPageLabelFromPageNum
: Convert a page number to a page label.pdfGetPageNumFromPageLabel
: Convert a page label to a page number.
Outline
pdfGetOutlineNumChildren
: Get the number of children of an outline node.pdfGetOutlineChild
: Get an outline node child.pdfGetOutlineTitle
: Get the text associated with an outline node.pdfGetOutlineStartsOpen
: Check to see if an outline node starts open.pdfGetOutlineTargetPage
: Get the target page number for an outline node.pdfGotoOutlineTarget
: Jump to the target of an outline node.
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.
Prepress settings
pdfEnableDeviceNOverprintPreview
: Enable or disable DeviceN+overprint preview mode.pdfEnableColorManagement
: Enable or disable color management.
Miscellaneous settings
pdfShowScrollbars
: Enable/disable scrollbars.pdfSetMatteColor
: Set the matte color.pdfSetReverseVideo
: Turn reverse video mode on/off.pdfEnableBeeps
: Enable/disable beeps.pdfShowPasswordDialog
: Enable/disable the password dialog.pdfSetMouseCursor
: Change the mouse cursor.pdfSetMouseLinkCursor
: Change the mouse cursor shown over links.
Miscellaneous
pdfSetErrorCbk
: Provide a function to be called whenever an error is reported.pdfGetWindowHandle
: Get the viewer window handle.pdfFreeMemory
: Free memory allocated by the library.