Use one of the following strings for opt to obtain different formats 2: Also be aware that not all of them always contain meaningful data – even if they are not None. The meta data fields are strings or None if not otherwise indicated. Further information can also be found in chapter Document. For details of their meanings and formats consult the respective manuals, e.g. It is available for all document types, though not all entries may always contain data. tadata is a Python dictionary with the following keys. PyMuPDF fully supports standard metadata. Among them are meta information (like “author” or “subject”), number of total pages, outline and encryption information. You can also use Document as a context manager.Ī document contains many attributes and functions. It is also possible to open a document from memory data, or to create a new, empty PDF. filename must be a Python string (or a pathlib.Path) specifying the name of an existing file. open ( filename ) # or fitz.Document(filename)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |