Re: Re: Help needed to do minor edits to PDF file
Alfred Reibenschuh <[email protected]> Fri, 25 Jan 2008 06:58:24 +0100
| Newsgroups | gmane.comp.lang.perl.modules.pdfapi2 |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Mr. Shawn H. Corey wrote:
> fernando.madruga wrote:
>> Any pointers on how to access that raw PS data?
>
> When you open a file with PDF::API2, it does not un-filter (uncompress or decrypt) its content. You would have to write a routine to do that.
>
> After that, would you have to find or write a parser to process the raw content.
>
> Once that is done, things should get easy :)
if you really want to dive in:
PDF::API2::Utils contains an unfilter method
the pagedata is located in $content_obj->{" stream"}
you should get a copy of the pdf-spec from:
http://www.adobe.com/devnet/pdf/pdf_reference.html
C
- --
fredo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHmXqAjKJMaHhpyr4RCA8hAJ9ZO7QRFFDr+4HSm8viDHuKhLjgNgCdGq8X
40OcWkw4mQD3jAt6sWXbYLc=
=35JB
-----END PGP SIGNATURE-----