InusualZ
bd6b03c2e8
Removed the possibility of deepCopy a token.
...
Anyway, the DataToken properties most are readonly, If you want to change something. You have to crate a new token anyway. Discussion: https://github.com/UglyToad/PdfPig/pull/150
2020-03-15 16:05:23 +01:00
InusualZ
3abe210c6f
Add new flag to control, weather we want to dispose the base stream.
...
Let the base stream throw in case of using unsupported method (Ex. Seek, Read, etc..)
2020-03-15 16:05:23 +01:00
InusualZ
02289d75ac
Use ReferenceEquals to avoid infinite recursion
...
Fix InlineImageDataToken not checking Data length before comparing bytes
Use a more straightforward compare Dictionary Content
2020-03-15 16:05:23 +01:00
InusualZ
26f92a9630
Add test case, that test that we lower the object count
2020-03-15 16:05:23 +01:00
InusualZ
b3f310a249
Make PdfMerger use the PdfStreamWriter
2020-03-15 16:05:23 +01:00
InusualZ
44ad5c8b0c
PdfStreamWriter: Error Checking and Code Formatting
2020-03-15 16:05:23 +01:00
InusualZ
c533d47386
New class PdfStreamWriter
...
This class would allow us to lazily flush resource. This would allow us to make changes to them, while new content is pushed. Compress, Merge, Deduplicate, etc...
2020-03-15 16:05:23 +01:00
InusualZ
be7716eeea
Make IToken implement IEquatable<IToken>
...
This would allow us to deduplicate tokens, by comparing their content
2020-03-15 16:05:23 +01:00
InusualZ
ab3779e644
Fix an issue where the root/Pages Count was incorrect
...
`/Pages` Count should reflect the number leaf nodes (page objects) that are descendants of this node.
2020-03-07 16:47:35 +00:00
Inusual
b560c73fa9
Set the version as the highest version found in the merged document
...
And reorganize the code a little bit
2020-03-02 17:00:16 +00:00
Inusual
ca250a8c6f
IsLenientParsing as false
2020-03-02 17:00:16 +00:00
Inusual
439a186ed7
Remove dead code
2020-03-02 17:00:16 +00:00
Inusual
932857cf8c
Revert "Don't forget to copy /Pages properties too"
...
This reverts commit 224d9dc6e52245f9d16a22af460f386545403cd1.
2020-03-02 17:00:16 +00:00
Inusual
20ff625c2e
Don't forget to copy /Pages properties too
2020-03-02 17:00:16 +00:00
Inusual
ec67ef76cd
Remove ObjectsTree class since it's obsolete
2020-03-02 17:00:16 +00:00
Inusual
4ffc1620a1
Don't create unnecessary objects
2020-03-02 17:00:16 +00:00
Inusual
761e3d291e
Rename DocumentBuilder to DocumentMerger
...
Remove IDisposable trait
2020-03-02 17:00:16 +00:00
Inusual
6e0caee317
Add StreamToken as exception to CopyTokenq
...
Add summary to better explain CopyToken purpose
2020-03-02 17:00:16 +00:00
Inusual
669742b6bd
Fix for page object having as parent his own object
...
I decided to move to his own method, the part that create the page node. This allowed me to visualize better, from where I was suppose to get the correct reference.
2020-03-02 17:00:16 +00:00
Inusual
f485826751
PdfMerger: basic functionality implemented
...
I has a lot of unknown and TODO please look at them
2020-03-02 17:00:16 +00:00
Inusual
013cbd14e0
Make CrossReferenceTableParser a static class
2020-03-02 17:00:16 +00:00