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.
Extracting text
pdfConvertToTextFile
: Convert pages to text and write to a file.pdfConvertToTextString
: Convert pages to text and return a string.pdfExtractTextFromRect
: Extract text from a rectangular region.pdfExtractTextFromRect2
: Extract text from a rectangular region.
Word lists
pdfBuildWordList
: Construct a word list.pdfBuildWordListFromRect2
: Construct a word list for a rectangular region.pdfGetPrimaryDirection
: Get the primary writing direction of the word list.pdfGetNumWords
: Get the number of words on the word list.pdfGetWord
: Get a word handle.pdfGetWordText
: Get the text of a word.pdfGetWordLength
: Get the Unicode length of a word.pdfGetWordFontName
: Get the name of the font used by a word.pdfGetWordColor
: Get the color of a word.pdfGetWordBox
: Get the bounding box of a word.pdfGetWordBox2
: Get the bounding box of a word.pdfGetWordCharBox
: Get the bounding box of a character in a word.pdfGetWordCharBox2
: Get the bounding box of a character in a word.pdfGetWordSpaceAfter
: Check for a space after a word.pdfGetWordFontSize
: Get the font size used by a word.pdfGetWordFontIsFixedWidth
: Get the "fixed width" font flag for a word.pdfGetWordFontIsSerif
: Get the "serif" font flag for a word.pdfGetWordFontIsSymbolic
: Get the "symbolic" font flag for a word.pdfGetWordFontIsItalic
: Get the "italic" font flag for a word.pdfGetWordFontIsBold
: Get the "bold" font flag for a word.pdfGetWordRotation
: Get the rotation angle of a word.pdfGetWordCharPos
: Get the character position of a word.pdfGetWordCharLen
: Get the character length of a word.pdfGetWordDirection
: Get the writing direction of a word.
Text statistics
pdfGetNumVisibleChars
: Get the number of visible chars on the most recent page.pdfGetNumInvisibleChars
: Get the number of invisible chars on the most recent page.pdfGetNumRemovedDupChars
: Get the number of removed duplicate chars on the most recent page.
Annotations
pdfBuildAnnotList
: Construct an annotation list.pdfGetNumAnnots
: Get the number of annotations on the annotation list.pdfGetAnnot
: Get an annotation handle.pdfGetAnnotType
: Get the type of an annotation.pdfGetAnnotRect
: Get the bounding box of an annotation.pdfGetAnnotContent
: Get the content of an annotation.
Form fields and XFA data
pdfGetFormType
: Get the type of form in the PDF file.pdfGetNumFormFields
: Get the number of form fields.pdfSortFormFields
: Sort the form fields in row-major order.pdfGetFormField
: Get a form field handle.pdfGetFormFieldType
: Get the type of a form field.pdfGetFormFieldName
: Get the name of a form field.pdfGetFormFieldBBox
: Get a form field's bounding box.pdfGetFormFieldMaxLength
: Get the maximum length of a form field's value.pdfGetFormFieldValue
: Get the value of a form field.pdfExtractXFAData
: Extract XFA form data.
Setting parameters
pdfSetTextEncoding
: Set the encoding to use for text output.pdfSetTextReadingOrderMode
: Set text extraction mode to "reading order".pdfSetTextPhysicalLayoutMode
: Set text extraction mode to "physical layout".pdfSetTextSimpleLayoutMode
: Set text extraction mode to "simple layout".pdfSetTextSimple2LayoutMode
: Set text extraction mode to "simple2 layout".pdfSetTextTableLayoutMode
: Set text extraction mode to "table layout".pdfSetTextLinePrinterMode
: Set text extraction mode to "line printer".pdfSetTextRawMode
: Set text extraction mode to "raw".pdfSetTextFixedPitch
: Set the text pitch.pdfSetTextFixedLineSpacing
: Set the text line spacing.pdfSetClipText
: Separate clipped text from unclipped text.pdfSetDiscardDiagonalText
: Discard diagonal text.pdfSetDiscardClippedText
: Discard clipped text.pdfSetDiscardInvisibleText
: Discard invisible text.pdfSetTextPageBreaks
: Enable/disable page break characters between pages.pdfSetTextKeepTinyChars
: Keep tiny characters.pdfSetTextMapNumericCharNames
: Map numeric character names to Unicode.
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.pdfIsTagged
: Check to see if the PDF file is tagged.pdfGetPDFVersion
: 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.
Text-type Info Entries
pdfGetInfoString
: Get the content of a document info field.pdfGetTitle
: Get the document title.pdfGetSubject
: Get the document subject.pdfGetKeywords
: Get the document keywords.pdfGetAuthor
: Get the document author.pdfGetCreator
: Get the document creator.pdfGetProducer
: Get the document producer.
Date-type Info Entries
pdfGetInfoDate
: Parse a document info field as a date.pdfGetCreationDate
: Get file creation date.pdfGetModDate
: Get file modification date.
Scanning the Info Entries
pdfGetNumInfoFields
: Get the number of document info fields available in the PDF file.pdfGetInfoFieldName
: Get the name of a specified info field.
Metadata Stream
pdfGetMetadata
: Get the document-level metadata stream.
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.pdfFreeMemory
: Free memory allocated by the library.