Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PDFLib - pdf_open_file(...)

42 views
Skip to first unread message

Jarkko Kähkönen

unread,
Jan 23, 2004, 11:00:52 AM1/23/04
to
Hi,

PDFLib (www.pdflib.com) has function like:

pdf_open_file($pdf, "philosophy.pdf");


Does that function mean that it opens, reads, parses philosophy.pdf
for further editing (for example I'll add some text from PHP) and saving?


Or is that done so stupid at PDFLib that first you tell name of pdf-file
and at end of your php-source when it's closing that file, it saves pdf-data
to that file.

If parsing of pdf-files is not possible with pdflib, anyone know any other
tools where it is possible?

Do you know that can http://www.fpdf.org do it?

Thanks in advance,
Jarkko Kähkönen


kimi

unread,
Feb 16, 2004, 9:15:17 PM2/16/04
to
Hello,

"int PDF_open_file(PDF *p,const char *filename):
Create a new PDF file using the supplied file name."(PDFlib-manual.pdf,
p.148)

IN my opinon, if you PDF_open in your way there isnt anything anymore to
parse in philosophy.pdf.You have to put the philosophy in the *p-Parameter
than you copy to filename.
Here is also mentioned filenam >>-<< to write to stdout. So look whats
coming out.
I think with pdflib you only can create new files, for editing pdfs,
you have to spend some more money on further products from pdflib, to edit
existing pdfs. I think fpdf does the same.
But i havent read in depth.

PERL::PDF gives some fuzzing but human readable output of an PDF-file.
Look at CPAN.org. May be pdflatex gives some hint, but it also only produces
pdfs.
I started whith programming pdfs a few days ago, and i am looking for some
hints :

Can you tell me how do you translate the abovestanding c/c++-style code
into your probably php-style code? What kind of pdflib do you use? The
light-one, like me?

so longe,
KIMI

Jarkko Kähkönen wrote:

--
@-----------------------------------@
| Michael Kindermann
| Wuerzburg/Germany
| michael.k...@gmx.net

0 new messages