pdf:changing
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
pdf:changing [2016/06/02 15:52] – christian | pdf:changing [2016/06/02 16:38] – [Details] christian | ||
---|---|---|---|
Line 8: | Line 8: | ||
After changing things in '' | After changing things in '' | ||
- | < | + | < |
===== Details ===== | ===== Details ===== | ||
The class PDF.File is for reading PDFs from files. It does so incrementally by just reading objects from disk when they are needed. On can see that in the PDFExplorer: | The class PDF.File is for reading PDFs from files. It does so incrementally by just reading objects from disk when they are needed. On can see that in the PDFExplorer: | ||
+ | |||
{{: | {{: | ||
- | The inital object read from a PDF is the ''/ | + | where 729 of 125179 objects have been read. |
- | The cloning of the PDF is done in the File>> | + | The inital object read from a PDF is the ''/ |
+ | |||
+ | The cloning of the PDF is done in the '' | ||
<code Smalltalk> | <code Smalltalk> | ||
asDocument | asDocument | ||
Line 25: | Line 28: | ||
| newDocument info | | | newDocument info | | ||
newDocument := Document new. | newDocument := Document new. | ||
- | newDocument root: self root. | + | newDocument root: self trailer Root. |
info := self trailer Info. | info := self trailer Info. | ||
info at: #ModDate put: Timestamp now. | info at: #ModDate put: Timestamp now. | ||
Line 33: | Line 36: | ||
^newDocument | ^newDocument | ||
</ | </ | ||
+ | |||
+ | For the new document , we just take the ''/ | ||
+ | |||
+ | The ''/ | ||
+ | |||
+ | Finally, when writing the new document, all references from ''/ | ||
+ | |||
+ | In the demos 12 and 13 (package "PDF Development", |
/var/www/virtual/code4hl/html/dokuwiki/data/pages/pdf/changing.txt · Last modified: 2016/06/02 16:39 by christian