Initializes a PdfFileReader object. This operation can take some time, asthe PDF stream’s cross-reference tables are read into memory.
Parameters: |
|
---|
PDF Reader - View, Edit, Annotate by Xodo is an all-in-one PDF reader and PDF editor. Free Features!. Fastest PDF viewing engine and smooth navigation. Write directly on a PDF, highlight and underline text, and more. Annotate PDFs with others in real time. Fill PDF forms and sign documents. Take notes on blank PDFs. Complete PDF support and compatible with Adobe Acrobat. It doesn't pop-up the translation of the selected text with just double-click like 'Google Dictionary' extension on web pages (not in PDF); you need to mark the word or text, then right click the selected text and select 'ImTranslator' in the menu. It will pop-up a small window with translation of the text. We additionally provide top-rated Pdf Reader With Inbuilt Dictionary detailed buying guide with actually correct, unbiased, and actual facts. Our information is regulated with the aid of Artificial Intelligence - dependable on-line assets, which take up the obligation to confirm and proofread information of diverse on-line resources. Open source and lightweight. Available in dozens of languages. No anti-aliasing, so.
decrypt
(password)¶When using an encrypted / secured PDF file with the PDF Standardencryption handler, this function will allow the file to be decrypted.It checks the given password against the document’s user password andowner password, and then stores the resulting decryption key if eitherpassword is correct.
It does not matter which password was matched. Both passwords providethe correct decryption key that will allow the document to be used withthis library.
Parameters: | password (str) – The password to match. |
---|---|
Returns: | 0 if the password failed, 1 if the password matched the userpassword, and 2 if the password matched the owner password. |
Return type: | int |
Raises NotImplementedError: | |
if document uses an unsupported encryptionmethod. |
documentInfo
¶Read-only property that accesses the getDocumentInfo()
function.
getDestinationPageNumber
(destination)¶Retrieve page number of a given Destination object
Parameters: | destination (Destination) – The destination to get page number.Should be an instance ofDestination |
---|---|
Returns: | the page number or -1 if page not found |
Return type: | int |
getDocumentInfo
()¶Retrieves the PDF file’s document information dictionary, if it exists.Note that some PDF files use metadata streams instead of docinfodictionaries, and these metadata streams will not be accessed by thisfunction.
Returns: | the document information of this PDF file |
---|---|
Return type: | DocumentInformation or None if none exists. |
getFields
(tree=None, retval=None, fileobj=None)¶Extracts field data if this PDF contains interactive form fields.The tree and retval parameters are for recursive use.
Parameters: | fileobj – A file object (usually a text file) to writea report to on all interactive form fields found. |
---|---|
Returns: | A dictionary where each key is a field name, and eachvalue is a Field object. Bydefault, the mapping name is used for keys. |
Return type: | dict, or None if form data could not be located. |
getFormTextFields
()¶Retrieves form fields from the document with textual data (inputs, dropdowns)
getNamedDestinations
(tree=None, retval=None)¶Retrieves the named destinations present in the document.
Returns: | a dictionary which maps names toDestinations . |
---|---|
Return type: | dict |
getNumPages
()¶Calculates the number of pages in this PDF file.
Returns: | number of pages |
---|---|
Return type: | int |
Raises PdfReadError: | |
if file is encrypted and restrictions preventthis action. |
getOutlines
(node=None, outlines=None)¶Retrieves the document outline present in the document.
Returns: | a nested list of Destinations . |
---|
getPage
(pageNumber)¶Retrieves a page by number from this PDF file.
Parameters: | pageNumber (int) – The page number to retrieve(pages begin at zero) |
---|---|
Returns: | a PageObject instance. |
Return type: | PageObject |
getPageLayout
()¶Get the page layout.See setPageLayout()
for a description of valid layouts.
Returns: | Page layout currently being used. |
---|---|
Return type: | str , None if not specified |
getPageMode
()¶Get the page mode.See setPageMode()
for a description of valid modes.
Returns: | Page mode currently being used. |
---|---|
Return type: | str , None if not specified |
getPageNumber
(page)¶Retrieve page number of a given PageObject
Parameters: | page (PageObject) – The page to get page number. Should bean instance of PageObject |
---|---|
Returns: | the page number or -1 if page not found |
Return type: | int |
getXmpMetadata
()¶Retrieves XMP (Extensible Metadata Platform) data from the PDF documentroot.
Returns: | a XmpInformation instance that can be used to access XMP metadata from the document. |
---|---|
Return type: | XmpInformation orNone if no metadata was found on the document root. |
isEncrypted
¶Read-only boolean property showing whether this PDF file is encrypted.Note that this property, if true, will remain true even after thedecrypt()
method is called.
namedDestinations
¶Read-only property that accesses thegetNamedDestinations()
function.
numPages
¶Read-only property that accesses thegetNumPages()
function.
Pdf Reader With Dictionary Ipad
outlines
¶- Read-only property that accesses the
getOutlines()
function.
pageLayout
¶Read-only property accessing thegetPageLayout()
method.
pageMode
¶Read-only property accessing thegetPageMode()
method.
Pdf Reader With Inbuilt Dictionary
pages
¶Read-only property that emulates a list based upon thegetNumPages()
andgetPage()
methods.
xmpMetadata
¶Pdf Reader With Dictionary Linux
Read-only property that accesses thegetXmpMetadata()
function.