forked from py-pdf/pypdf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multiple Fix and enhancement (py-pdf#75)
* Local imports imports made local to have concurrent versions in parallel & upgrade version * Fix Reading Files fix regression since 1.27.0 in encoded stream loading and extraction of XRefStm and Prev in trailer * Lazy file/stream selection Provide capability to provide the filename/stream only when calling write * Add Clone capability Provide capability to copy pages and objects from a reader into a writer. Provide also capability to copy a full reader into a writer * Add PageLabel access functions implement PageLabels functions both in Reader (get) and Writer (get/add/remove) * Object Standardization Create _rootObject in Reader to match Writer and also introduce a getIndirectionFunction on both Reader and Writer * Enhance NamedDestinations functions Extend NamedDestinations to work with PDF 1.1 and 1.2+ with both get/insert/remove functions Also complete/fix some issues with outlines * enhance pages api for writer Provide capability to work with non flatten pages organisation for bot insertion,get and remove page * Add comment capability implements functions to add comments to a Page * Remove Links / Annots improve removeLinks into removeAnnots to be able to select which type of annots to remove removeLinks kept for compatility * add demo programs on comments Add 2 tests programs for test and demo about comments (merging comments and Listing them in an excel sheet)
- Loading branch information
Showing
9 changed files
with
1,239 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
from pypdf.pdf import PdfFileReader, PdfFileWriter | ||
from pypdf.merger import PdfFileMerger | ||
from pypdf.pagerange import PageRange | ||
from pypdf._version import __version__ | ||
from .pdf import PdfFileReader, PdfFileWriter | ||
from .generic import * | ||
from .merger import PdfFileMerger | ||
from .pagerange import PageRange | ||
from ._version import __version__ | ||
|
||
|
||
__all__ = [ | ||
# Basic PyPDF elements | ||
"PdfFileReader", "PdfFileWriter", "PdfFileMerger", "PageRange", | ||
# most used elements from generic | ||
"BooleanObject","ArrayObject","IndirectObject","FloatObject","NumberObject","createStringObject", | ||
"TextStringObject","NameObject","DictionaryObject","TreeObject","Destination","PageLabel","Bookmark", | ||
# PyPDF modules | ||
"pdf", "generic", "utils", "filters", "merger", "pagerange", "xmp" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '1.27.0' | ||
__version__ = '1.27.0PPzz' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.