Thread: a REAL crop!!
View Single Post
Old 05-19-2009, 07:23 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I don't know if you can remove elements with Acrobat, but it could be possible to work with the uncompressed PDF like this:

Uncompress the PDF with pdftk (a single page in this example):
Code:
pdftk rudyard_kipling_2004_9.pdf cat 3 output a.pdf uncompress
Now edit the a.pdf file with a text editor. Near the end you'll find:

Code:
18 0 obj
<<
/Length 4339
stream
After that, comment out the first two BT...ET blocks (page footer and page number) and the following lines until the next BT, like this:

Code:
%BT
%/F3 8 Tf
%15 25 Td
%0 -8 Td
%<005A005A005A00110033005200480050002B0058005100570048005500110046005200500003001000030037004B00480003003A00520055004F0047000A0056000300330052004800570055005C0003
%002400550046004B004C00590048> Tj
%ET
%BT
%/F3 8 Tf
%15 25 Td
%576.914 -8 Td
%<0016> Tj
%-576.914 0 Td
%ET
%10 10 m
%10 782 l
%602 782 l
%602 10 l
%10 10 l
%h
%S
Since that's 21 lines (and 21 additional % characters) you have to add 21 to the length:

Code:
/Length 4360
Now you can compress back the PDF:
Code:
pdftk a.pdf output b.pdf compress
And the resulting PDF is attached.
Attached Files
File Type: pdf b.pdf (38.7 KB, 514 views)
Jellby is offline   Reply With Quote