On Sat, Nov 03, 2007 at 04:16:25PM -0400, Gwurk wrote: > 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.
You are right. Thanks for reporting. Fix is available in CVS (but if you are using system with 1B end-of-line marker then "%010u %05i n " is enough. Just FYIr, if you find some other problems you can report them also in our bugtracker http://pdfedit.petricek.net/bt/main_page.php. Best regards. -- Michal Hocko ------------------------------------------------------------------------- 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
