Causes of - errors detected in the XREF table

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: Tracker Support, TrackerSupp-Daniel, Paul - Tracker Supp, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker Supp-Stefan, Ivan - Tracker Software

Post Reply
dalacor
User
Posts: 21
Joined: Thu Sep 01, 2016 9:04 am

Causes of - errors detected in the XREF table

Post by dalacor » Wed May 15, 2019 6:19 pm

I use an accounting program that allows me to save invoices as a pdf. It saves perfectly, but I always get an error message in pdf editor, saying - errors detected in the XREF table. When I re-save the pdf and re-open the message is gone.

Can you advise what causes it as I do not get this error message in Acrobat Reader or in Nitro. I have uploaded a sample zipped pdf file.

Thank you.
Attachments
test document.zip
(80.58 KiB) Downloaded 19 times

User avatar
TrackerSupp-Daniel
Site Admin
Posts: 2164
Joined: Wed Jan 03, 2018 6:52 pm

Re: Causes of - errors detected in the XREF table

Post by TrackerSupp-Daniel » Wed May 15, 2019 9:32 pm

Hello Dalacor,

This error message is presented when we have detected any potential errors in a document that we know how to fix. Generally speaking these issues are often minor, but if left unresolved can lead to larger issues within the document, such as file corruption and data loss.

Unfortunately, if you always see this after creating a document from this accounting program, it seems that it does not create the PDF's perfectly. Some applications do not attempt to detect these errors, and some, like Adobe, will usually catch them and fix them automatically without user intervention. We on the other hand believe that users should be aware when an issue is present in the document so that they have a chance to figure out what the cause could have been.

Kind regards,
Daniel McIntyre
Support Technician
Tracker Software Products (Canada) LTD

Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623

dalacor
User
Posts: 21
Joined: Thu Sep 01, 2016 9:04 am

Re: Causes of - errors detected in the XREF table

Post by dalacor » Wed May 15, 2019 9:42 pm

Hi Daniel,

Thank you for explaining why the issue occurs with pdf xchange but not other programs. The developer of my accounting program would be happy to improve his product to address any issues caused by creating pdf's from within the program.

You are correct. The accounting program is probably not creating something as the issue always occurs when I create a pdf from the accounting package but does not happen when I open most other pdf's. Are you able to identify what the program is missing - from the file that I have sent you which has not corrected the errors yet. If so, he could fix the pdf creation in his program.

Thank you

User avatar
TrackerSupp-Daniel
Site Admin
Posts: 2164
Joined: Wed Jan 03, 2018 6:52 pm

Re: Causes of - errors detected in the XREF table

Post by TrackerSupp-Daniel » Wed May 15, 2019 10:11 pm

Hello dalacor,

unfortunately, I cannot personally discern what exactly is incorrect in this document, not being an expert programmer myself. They can likely find what is wrong by using some document comparison application, such as WinMerg to see what aspects were changed between our fixed version, and their original version.

Kind regards,
Daniel McIntyre
Support Technician
Tracker Software Products (Canada) LTD

Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623

Lzcat - Tracker Supp
Site Admin
Posts: 711
Joined: Thu Jun 28, 2007 8:42 am

Re: Causes of - errors detected in the XREF table

Post by Lzcat - Tracker Supp » Thu May 16, 2019 7:08 am

Hi dalacor.
Problem is very simple - XRef stream has incorrect /Index entry.

Code: Select all

/Index[0 185]/Size 186
File has only one XRef section, which describe all objects in file, so this entry is optional. /Size entry is correct, since document has objects with maximum number 185, but /Index entry say that it has only 185 records instead of 186 required, and XRef stream itself does not contain record about last object (185, XRef stream itself). Normally this does not prevent PDF files to be opened by most readers, but does not conform PDF specification.
HTH.
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.

dalacor
User
Posts: 21
Joined: Thu Sep 01, 2016 9:04 am

Re: Causes of - errors detected in the XREF table

Post by dalacor » Thu May 16, 2019 4:45 pm

Thanks to both of you. I have passed that information onto my accounting developer. Regards Robert

User avatar
Will - Tracker Supp
Site Admin
Posts: 6595
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: Causes of - errors detected in the XREF table

Post by Will - Tracker Supp » Fri May 17, 2019 7:37 am

:)
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com

Post Reply