Dear list, I'd like to perform some basic PDF editing by hand ... can someone point me to a good source of introductory material to get me started? For example, I'd like to remove a text stamp from a given file but also learn something about PDF itself along the way ... if there's some open source editing tool that might help me understand bits and pieces of PDF I wouldn't mind either :-) Best wishes, Oliver
Dear list,
I'd like to perform some basic PDF editing by hand ... can someone point me to a good source of introductory material to get me started?
On Mon, Sep 7, 2009 at 5:47 PM, Oliver
Buerschaper
For example, I'd like to remove a text stamp from a given file but also learn something about PDF itself along the way ... if there's some open source editing tool that might help me understand bits and pieces of PDF I wouldn't mind either :-)
Under linux pdfedit is experimental http://pdfedit.petricek.net/en/index.html pypdf is a python module at lowlevel. http://pybrary.net/pyPdf/ As exercise, you can try to minimic pdffonts in python with pypdf (pdfs with ttf,otf,type1 etc ) -- luigi
Hi Luigi,
pdf spec. www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf xpdf sources
That sounds like a definite reference ... probably more than I can digest for a start :-( Perhaps there's a simple, example-driven guide for dummies somewhere? Like writing a simple PDF document with more than one page, non- contiguous text blocks and perhaps a hyperlink by hand ...
Under linux pdfedit is experimental http://pdfedit.petricek.net/en/index.html
Installed :-) OK, I've just managed to remove a page from a given PDF file. Beyond that one will probably have to know more about PDF ... for example, do you know how pdfedit can help me identify which object in the raw PDF corresponds to a given blob of text on the page? After selecting the blob I get some info on my selection that eludes me :-(
pypdf is a python module at lowlevel. http://pybrary.net/pyPdf/
This looks very interesting!
As exercise, you can try to minimic pdffonts in python with pypdf (pdfs with ttf,otf,type1 etc )
I'm afraid, I don't understand :-( Best, Oliver
I'm sure that hartmut has done a presentation sometimes ago f, could be http://www.matexhu.org/eurotex2006/lectures/pdftex/hartmut-talk.pdf
pypdf is a python module at lowlevel.
This looks very interesting!
As exercise, you can try to minimic pdffonts in python with pypdf
(pdfs with ttf,otf,type1 etc )
I'm afraid, I don't understand :-(
Under linux, xpdf comes with pdffonts, a cmd line tools that extracts fonts
information from a pdf. You can try to mimic it with pyPdf, so your knowledge can augment . -- luigi
Don't forget about pdftk vim plugin, otherwise you'll have to count
byte offsets on your fingers, or even better use qdf form with qpdf.
Maybe I'll publish a short tutorial on writing pdf by hand that I
started to write couple of months ago. AFAIK there isn't any (Please,
tell me I'm wrong).
Piotr
2009/9/7 luigi scarso
I'm sure that hartmut has done a presentation sometimes ago f, could be http://www.matexhu.org/eurotex2006/lectures/pdftex/hartmut-talk.pdf
pypdf is a python module at lowlevel. http://pybrary.net/pyPdf/
This looks very interesting!
As exercise, you can try to minimic pdffonts in python with pypdf (pdfs with ttf,otf,type1 etc )
I'm afraid, I don't understand :-(
Under linux, xpdf comes with pdffonts, a cmd line tools that extracts fonts information from a pdf. You can try to mimic it with pyPdf, so your knowledge can augment .
-- luigi
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Mon, Sep 7, 2009 at 11:08 PM, Piotr Kopszak
Don't forget about pdftk vim plugin, otherwise you'll have to count byte offsets on your fingers, or even better use qdf form with qpdf. Maybe I'll publish a short tutorial on writing pdf by hand that I started to write couple of months ago. AFAIK there isn't any (Please, tell me I'm wrong). If even, another is not bad at all. -- luigi
Don't forget about pdftk vim plugin, otherwise you'll have to count byte offsets on your fingers, or even better use qdf form with qpdf.
I've just had a brief look at qpdf and this seems incredible! This might just be the tool I had in mind ... now I'll have to check out what qdf can do for me ...
Maybe I'll publish a short tutorial on writing pdf by hand that I started to write couple of months ago.
Please do! Oliver
On Tue, Sep 8, 2009 at 10:18 AM, Oliver
Buerschaper
Don't forget about pdftk vim plugin, otherwise you'll have to count byte offsets on your fingers, or even better use qdf form with qpdf.
I've just had a brief look at qpdf and this seems incredible! This might just be the tool I had in mind ... now I'll have to check out what qdf can do for me ... warning: uncompress pdf can frozen your console and burn you CPU......
-- luigi
I've just had a brief look at qpdf and this seems incredible! This might just be the tool I had in mind ... now I'll have to check out what qdf can do for me ... warning: uncompress pdf can frozen your console and burn you CPU......
Good to know ... actually I wanted to peak into a FlateDecode compressed object as my next step. Well, at least I'll know where the smoke might be coming from then :-P Oliver
Oliver, at the end (ASAP) you *must* wikify all these stuffs. you can also see my old and unmaintened page http://wiki.contextgarden.net/User:Luigi.scarso#Cool_links -- luigi
OK, here it is. But no guarantees it makes much sense.
http://okle.pl/blogs/show_post/23
2009/9/8 Oliver Buerschaper
Don't forget about pdftk vim plugin, otherwise you'll have to count byte offsets on your fingers, or even better use qdf form with qpdf.
I've just had a brief look at qpdf and this seems incredible! This might just be the tool I had in mind ... now I'll have to check out what qdf can do for me ...
Maybe I'll publish a short tutorial on writing pdf by hand that I started to write couple of months ago.
Please do!
Oliver ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Tue, Sep 8, 2009 at 11:39 AM, Piotr Kopszak
OK, here it is. But no guarantees it makes much sense.
fix-qdf file-before-fixing.pdf file-after-fixing.pdf doesn't work for me -- luigi
But you haven't used that on the example file? It's not qdf compliant.
P.
2009/9/8 luigi scarso
On Tue, Sep 8, 2009 at 11:39 AM, Piotr Kopszak
wrote: OK, here it is. But no guarantees it makes much sense.
fix-qdf file-before-fixing.pdf file-after-fixing.pdf
doesn't work for me -- luigi ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
I'm sure that hartmut has done a presentation sometimes ago f, could be http://www.matexhu.org/eurotex2006/lectures/pdftex/hartmut-talk.pdf
Wonderful! This is exactly the sort of thing I was looking for ... is there more material similar in spirit? Hartmut? ;-) Oliver
Oliver Buerschaper wrote:
I'm sure that hartmut has done a presentation sometimes ago f, could be http://www.matexhu.org/eurotex2006/lectures/pdftex/hartmut-talk.pdf
Wonderful! This is exactly the sort of thing I was looking for ... is there more material similar in spirit? Hartmut? ;-)
'How does pdf really work' would make a nice Maps article as well (hint hint). Best wishes, Taco
On Tue, 8 Sep 2009, Taco Hoekwater wrote:
Oliver Buerschaper wrote:
I'm sure that hartmut has done a presentation sometimes ago f, could be http://www.matexhu.org/eurotex2006/lectures/pdftex/hartmut-talk.pdf
Wonderful! This is exactly the sort of thing I was looking for ... is there more material similar in spirit? Hartmut? ;-)
'How does pdf really work' would make a nice Maps article as well (hint hint).
some hint? :-) such things need a quiet week, instead there are reviews over reviews... Regards, Hartmut
2009/9/8 Oliver Buerschaper
I'm sure that hartmut has done a presentation sometimes ago f, could be http://www.matexhu.org/eurotex2006/lectures/pdftex/hartmut-talk.pdf
Wonderful! This is exactly the sort of thing I was looking for ... is there more material similar in spirit? Hartmut? ;-)
Speaking about tools: Acrobat Pro (and some plugins to it) can do a lot. With podofobrowser those in the know can do a lot. And I'm shamelessly plugging my talk at EuroTeX 2009: http://www.oneiros.de/tex/papers/eurotex2009-pdflibs.pdf Did someone already mention that PDFs are not meant to be editable? Use the source, Oliver. :-) Best Martin
Speaking about tools: Acrobat Pro (and some plugins to it) can do a lot.
But all commercial, aren't they?
With podofobrowser those in the know can do a lot.
Will install ;-)
And I'm shamelessly plugging my talk at EuroTeX 2009: http://www.oneiros.de/tex/papers/eurotex2009-pdflibs.pdf
No worries, it's most welcome to me!
Did someone already mention that PDFs are not meant to be editable? Use the source, Oliver. :-)
Will do whenever I can ;-) Oliver
On Mon, Sep 7, 2009 at 6:34 PM, Oliver
Buerschaper
Hi Luigi,
pdf spec. www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf xpdf sources http://en.wikipedia.org/wiki/PDF
-- luigi
participants (6)
-
Hartmut Henkel
-
luigi scarso
-
Martin Schröder
-
Oliver Buerschaper
-
Piotr Kopszak
-
Taco Hoekwater