Discussion:
[iText-questions] "Missing document root" problem reading PDF
Richard Tallent
2015-03-31 14:50:11 UTC
Permalink
Hi,

I'm trying to read these three PDF files, and iText comes back with the same error:

"The document has no page root (meaning: it's an invalid PDF)."

http://www7.dleg.state.mi.us/orr/Files/AdminCode/1419_2014-090LR_AdminCode.pdf
http://www7.dleg.state.mi.us/orr/Files/AdminCode/1412_2014-083LR_AdminCode.pdf
http://www7.dleg.state.mi.us/orr/Files/AdminCode/1331_2013-058LR_AdminCode.pdf

Chrome's built-in PDF viewer has no problem pulling them up, nor does Adobe Reader. I'm currently using iText 5.5.3.0.

The files were apparently created from Word using Acrobat.

Any ideas? Before asking the state regulators to try to save them again, I want to be sure it's not just a bug in iText (or something I can otherwise work around in iText).

Thanks,

--
Richard Tallent
Senior Consultant
ERM

2615 Calder, St. 600
Beaumont, TX 77702
Tel: +1 409 833-7755
Mobile: +1 409 781-3128


________________________________

This electronic mail message may contain information which is (a) LEGALLY PRIVILEGED, PROPRIETARY IN NATURE, OR OTHERWISE PROTECTED BY LAW FROM DISCLOSURE, and (b) intended only for the use of the Addressee (s) names herein. If you are not the Addressee (s), or the person responsible for delivering this to the Addressee (s), you are hereby notified that reading, copying, or distributing this message is prohibited. If you have received this electronic mail message in error, please contact us immediately at (281) 600-1000 and take the steps necessary to delete the message completely from your computer system. Thank you, Environmental Resources Management.

Please visit ERM's web site: http://www.erm.com
Paulo Soares
2015-03-31 15:36:39 UTC
Permalink
(Please use StackOverflow to post a question. The mailing-list is being
abandoned)

Using what version of iText?

Paulo
Hi,
I’m trying to read these three PDF files, and iText comes back with the
“The document has no page root (meaning: it's an invalid
PDF).”
http://www7.dleg.state.mi.us/orr/Files/AdminCode/1419_2014-090LR_AdminCode.pdf
http://www7.dleg.state.mi.us/orr/Files/AdminCode/1412_2014-083LR_AdminCode.pdf
http://www7.dleg.state.mi.us/orr/Files/AdminCode/1331_2013-058LR_AdminCode.pdf
Chrome’s built-in PDF viewer has no problem pulling them up, nor does
Adobe Reader. I’m currently using iText 5.5.3.0.
The files were apparently created from Word using Acrobat.
Any ideas? Before asking the state regulators to try to save them again, I
want to be sure it’s not just a bug in iText (or something I can otherwise
work around in iText).
Thanks,
--
Richard Tallent
Senior Consultant
ERM
2615 Calder, St. 600
Beaumont, TX 77702
Tel: +1 409 833-7755
Mobile: +1 409 781-3128
------------------------------
This electronic mail message may contain information which is (a) LEGALLY
PRIVILEGED, PROPRIETARY IN NATURE, OR OTHERWISE PROTECTED BY LAW FROM
DISCLOSURE, and (b) intended only for the use of the Addressee (s) names
herein. If you are not the Addressee (s), or the person responsible for
delivering this to the Addressee (s), you are hereby notified that reading,
copying, or distributing this message is prohibited. If you have received
this electronic mail message in error, please contact us immediately at
(281) 600-1000 and take the steps necessary to delete the message
completely from your computer system. Thank you, Environmental Resources
Management.
Please visit ERM's web site: http://www.erm.com
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
iText-questions mailing list
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a
reference to the iText book: http://www.itextpdf.com/book/
http://itextpdf.com/themes/keywords.php
Richard Tallent
2015-03-31 15:50:40 UTC
Permalink
Hi Paulo,

I’ve tried with iSharpText 5.5.3.0 and now 5.5.6 (the latest on GitHub).

I’ve re-posted the question on Stack Overflow with more detail:

http://stackoverflow.com/questions/29372894/why-is-itextsharp-returning-a-no-page-root-error

--Richard


From: Paulo Soares [mailto:***@gmail.com]
Sent: Tuesday, March 31, 2015 10:37 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] "Missing document root" problem reading PDF

(Please use StackOverflow to post a question. The mailing-list is being abandoned)

Using what version of iText?
Paulo

On Tue, Mar 31, 2015 at 3:50 PM, Richard Tallent <***@erm.com<mailto:***@erm.com>> wrote:
Hi,

I’m trying to read these three PDF files, and iText comes back with the same error:

“The document has no page root (meaning: it's an invalid PDF).”

http://www7.dleg.state.mi.us/orr/Files/AdminCode/1419_2014-090LR_AdminCode.pdf
http://www7.dleg.state.mi.us/orr/Files/AdminCode/1412_2014-083LR_AdminCode.pdf
http://www7.dleg.state.mi.us/orr/Files/AdminCode/1331_2013-058LR_AdminCode.pdf

Chrome’s built-in PDF viewer has no problem pulling them up, nor does Adobe Reader. I’m currently using iText 5.5.3.0.

The files were apparently created from Word using Acrobat.

Any ideas? Before asking the state regulators to try to save them again, I want to be sure it’s not just a bug in iText (or something I can otherwise work around in iText).

Thanks,
--
Richard Tallent
Senior Consultant
ERM

2615 Calder, St. 600
Beaumont, TX 77702
Tel: +1 409 833-7755<tel:%2B1%20409%20833-7755>
Mobile: +1 409 781-3128<tel:%2B1%20409%20781-3128>


________________________________

This electronic mail message may contain information which is (a) LEGALLY PRIVILEGED, PROPRIETARY IN NATURE, OR OTHERWISE PROTECTED BY LAW FROM DISCLOSURE, and (b) intended only for the use of the Addressee (s) names herein. If you are not the Addressee (s), or the person responsible for delivering this to the Addressee (s), you are hereby notified that reading, copying, or distributing this message is prohibited. If you have received this electronic mail message in error, please contact us immediately at (281) 600-1000 and take the steps necessary to delete the message completely from your computer system. Thank you, Environmental Resources Management.

Please visit ERM's web site: http://www.erm.com

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
iText-questions mailing list
iText-***@lists.sourceforge.net<mailto:iText-***@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php


________________________________

This electronic mail message may contain information which is (a) LEGALLY PRIVILEGED, PROPRIETARY IN NATURE, OR OTHERWISE PROTECTED BY LAW FROM DISCLOSURE, and (b) intended only for the use of the Addressee (s) names herein. If you are not the Addressee (s), or the person responsible for delivering this to the Addressee (s), you are hereby notified that reading, copying, or distributing this message is prohibited. If you have received this electronic mail message in error, please contact us immediately at (281) 600-1000 and take the steps necessary to delete the message completely from your computer system. Thank you, Environmental Resources Management.

Please visit ERM's web site: http://www.erm.com
Michaël Demey
2015-03-31 15:33:27 UTC
Permalink
Hi,


First of, the mailing list is being abandoned, so you have a higher
chance at getting an answer on StackOverflow.

Secondly, iText 5.5.6-snapshot opens the PDFs just fine. Could you retry
with 5.5.5 or the latest build from the repo (5.5.6-SNAPSHOT)?


Kind regards,
Michaël.
Hi,
I’m trying to read these three PDF files, and iText comes back with the
“The document has no page root (meaning: it's an
invalid PDF).”
http://www7.dleg.state.mi.us/orr/Files/AdminCode/1419_2014-090LR_AdminCode.pdf
http://www7.dleg.state.mi.us/orr/Files/AdminCode/1412_2014-083LR_AdminCode.pdf
http://www7.dleg.state.mi.us/orr/Files/AdminCode/1331_2013-058LR_AdminCode.pdf
Chrome’s built-in PDF viewer has no problem pulling them up, nor does
Adobe Reader. I’m currently using iText 5.5.3..0.
The files were apparently created from Word using Acrobat.
Any ideas? Before asking the state regulators to try to save them again,
I want to be sure it’s not just a bug in iText (or something I can
otherwise work around in iText).
Thanks,
--
Richard Tallent
Senior Consultant
ERM
2615 Calder, St. 600
Beaumont, TX 77702
Tel: +1 409 833-7755
Mobile: +1 409 781-3128
------------------------------------------------------------------------
This electronic mail message may contain information which is (a)
LEGALLY PRIVILEGED, PROPRIETARY IN NATURE, OR OTHERWISE PROTECTED BY LAW
FROM DISCLOSURE, and (b) intended only for the use of the Addressee (s)
names herein. If you are not the Addressee (s), or the person
responsible for delivering this to the Addressee (s), you are hereby
notified that reading, copying, or distributing this message is
prohibited. If you have received this electronic mail message in error,
please contact us immediately at (281) 600-1000 and take the steps
necessary to delete the message completely from your computer system.
Thank you, Environmental Resources Management.
Please visit ERM's web site: http://www.erm.com
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
iText-questions mailing list
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
iText-questions mailing list
iText-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Richard Tallent
2015-03-31 16:09:11 UTC
Permalink
Thanks Michaël.

I'll post to SO in the future.

I believe I found the issue -- there was some sort of proxy failure that resulted in them sending me an error message or a partial file.

Thanks,

--Richard


-----Original Message-----
From: Michaël Demey [mailto:***@gmail.com]
Sent: Tuesday, March 31, 2015 10:33 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] "Missing document root" problem reading PDF

Hi,


First of, the mailing list is being abandoned, so you have a higher chance at getting an answer on StackOverflow.

Secondly, iText 5.5.6-snapshot opens the PDFs just fine. Could you retry with 5.5.5 or the latest build from the repo (5.5.6-SNAPSHOT)?


Kind regards,
Michaël.
Post by Richard Tallent
Hi,
"The document has no page root (meaning: it's an invalid PDF)."
http://www7.dleg.state.mi.us/orr/Files/AdminCode/1419_2014-090LR_AdminCode.pdf
http://www7.dleg.state.mi.us/orr/Files/AdminCode/1412_2014-083LR_AdminCode.pdf
http://www7.dleg.state.mi.us/orr/Files/AdminCode/1331_2013-058LR_AdminCode.pdf
Chrome's built-in PDF viewer has no problem pulling them up, nor does
Adobe Reader. I'm currently using iText 5.5.3..0.
The files were apparently created from Word using Acrobat.
Any ideas? Before asking the state regulators to try to save them again,
I want to be sure it's not just a bug in iText (or something I can
otherwise work around in iText).
Thanks,
--
Richard Tallent
Senior Consultant
ERM
2615 Calder, St. 600
Beaumont, TX 77702
Tel: +1 409 833-7755
Mobile: +1 409 781-3128
------------------------------------------------------------------------
This electronic mail message may contain information which is (a)
LEGALLY PRIVILEGED, PROPRIETARY IN NATURE, OR OTHERWISE PROTECTED BY LAW
FROM DISCLOSURE, and (b) intended only for the use of the Addressee (s)
names herein. If you are not the Addressee (s), or the person
responsible for delivering this to the Addressee (s), you are hereby
notified that reading, copying, or distributing this message is
prohibited. If you have received this electronic mail message in error,
please contact us immediately at (281) 600-1000 and take the steps
necessary to delete the message completely from your computer system.
Thank you, Environmental Resources Management.
Please visit ERM's web site: http://www.erm.com
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
iText-questions mailing list
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
iText-questions mailing list
iText-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php

________________________________

This electronic mail message may contain information which is (a) LEGALLY PRIVILEGED, PROPRIETARY IN NATURE, OR OTHERWISE PROTECTED BY LAW FROM DISCLOSURE, and (b) intended only for the use of the Addressee (s) names herein. If you are not the Addressee (s), or the person responsible for delivering this to the Addressee (s), you are hereby notified that reading, copying, or distributing this message is prohibited. If you have received this electronic mail message in error, please contact us immediately at (281) 600-1000 and take the steps necessary to delete the message completely from your computer system. Thank you, Environmental Resources Management.

Please visit ERM's web site: http://www.erm.com

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
iText-questions mailing list
iText-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Loading...