Previous | Next | (P-PDF) Developers
Topic: Re: AReader ver.5 and 4 differencies???
Conf: (P-PDF) Developers, Msg: 56442
From: zboris
Date: 5/29/2002 05:19 PM
Thank you leanard,
the system is openBSD php4.0.3pl1
I just got through this code. What we have:
We have some templete PDF file, with reserved tags in it:
xxNAMExx
xxADDRESxx
and so on... about 30 different tags.
So when i'm reading this templete with areader 4 or 5 i just can see some text, and this tags as a normal text too.
So "programmer" done the generation of docs the following way.
using PHP functions, this file is first opened for reading, the whole contents is read into some $contents variable, and the with ereg_replace() function, xxVARIABLESxx a replaced with a proper text.
Then this contents is copied into another file.
Simple (no need PDFlib, just working with text), but this generated file is not opened with AcroReadr 5 :)
I've checked through the templete file, it works.
So the question is mostly, when does the error:
"expecting dict object"
occure? And what does it mean?
Thank you,
Boris
>>I'm using this weird method of PDF generation with php.
>
>I would guess that's your
>problem then. What version of
>PHP? What version of PDFlib
>(the standard PDF library for
>PHP), or are you
>using some other solution? If
>so, what?
>
>
>>Exactly This file does not want to be opened with Acrobat Reader 5. Reader
>>4 opens it without any problems, while reader 5 says: expected a dict
>>object. And nothing happens.
>
>Reader 5 is more strict with
>PDF compliance.
>
>
>Leonard