When I tried using gv to view a PDF that had been edited with PDFedit, I get
the error "length of some xref entries is not equal to 20 bytes." Looking at
the PDF, it seems that the xref entries are only 19 bytes long (including
the \n).

Here is the culprit: in kernel/pdfwriter.cc, you have:
    snprintf(xrefRow, sizeof(xrefRow)-1, "%010u %05i n", (unsigned
int)entry->first, entry->second);
I think this will only give you 18 bytes, plus the newline. You want a space
after the 'n' in the format string.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Pdfedit-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdfedit-support

Reply via email to