Re: Opening and Editing Quark Binaries
| From: | Miguel Cruz | Date: | Wed, 17 Jul 2002 06:53:54 +0000 |
| Subject: | Re: Opening and Editing Quark Binaries | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108035@lists.php.net to get a copy of this message | ||
On Sun, 14 Jul 2002, Simon Troup wrote:
> ... quark reports things like unexpected EOF (even though when I open
> the file in a text editor they have same number of lines and "look"
> identical), I've also tried a few things with the Mac resource forks to
> no avail.
>
> Has anyone tried something like this before? Does the fread() fwrite()
> change line endings from mac to unix or something?
I am guessing the problem is that you're changing string lenghts and the
data structure used by QuarkXPress contains string length indicators. Once
you make a change to the length of a string without changing the length
indicator, it gets hopelessly confused.
Frankly, I do not think this will be an easy project. The QuarkXPress data
file is a pretty complex beast.
What are you actually trying to achieve? Perhaps there is another way.
miguel