[pdf4st] new feature: #pageAt: and #addPageTree:

  • From: "Christian Haider" <christian.haider@xxxxxxxxxxxxxxxxxxxxxxx>
  • To: "PDF4Smalltalk" <pdf4st@xxxxxxxxxxxxx>
  • Date: Tue, 5 Aug 2014 14:56:38 +0200

After a long time, I worked a bit on the library.

 

Since I try to read some information from an existing PDF, I found it very
clumsy to access pages.

 

Therefore, I implemented #pageAt: anInteger. 

In order to test this I had to be able to create arbitrary page trees (see
7.7.3 Page Tree in the spec - like directories and files where the items are
ordered). 

So I added #addPageTree: aPageTree with which you can create any page tree
structure you like.

 

These two methods facilitate applications for manipulating PDF files
(Extract, Split, Merge etc.). I added examples for extracting and splitting
(PDF.Document class #demo12_copyPagesToNewPDF and #demo13_splitPDF).

 

Happy hacking,

                Christian

Other related posts:

  • » [pdf4st] new feature: #pageAt: and #addPageTree: - Christian Haider