Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems rendering the files produced by TCPDF #11

Closed
josepsanzcamp opened this issue Jun 15, 2011 · 6 comments
Closed

Problems rendering the files produced by TCPDF #11

josepsanzcamp opened this issue Jun 15, 2011 · 6 comments

Comments

@josepsanzcamp
Copy link

I tested to display a document example provided by TCPDF class (example_001.pdf for example) and only displays a white page.

I done some tricks to detect what type of PDF file (version 1.4, letter and more) is needed and I don't know how create documents that can be readable by the PDF.JS reader.

My idea is to replace my actual system that convert PDF page into an image that is displayed online to the final user with this PDF reader.

It's a very good project and I want to thanks for your effort.

Josep Sanz.
www.saltos.net

@vingtetun
Copy link
Contributor

It looks like there is an error "ref is undefined" in pdf.js:1336. I wonder why this problem is not caught sooner.

In all cases http://www.tcpdf.org/examples.php seems a great resource to check the support of individual feature of a pdf document.

@sbarman
Copy link
Contributor

sbarman commented Jun 16, 2011

When I try to run it, I get there error "filter 'DCTDecode' not supported yet." PDF supports several different types of compression algorithms used for images and text. So far, only the most popular (Flate encoding) has been implemented. My guess is that the images in example_001.pdf are using the DCTDecode, causing the error which stops the rest of the page from being rendered.

I also agree that the link provided should be a good resource to test support of these features and find out what is missing and needs to be added.

@josepsanzcamp
Copy link
Author

Thanks by your reply.

I search if the TCPDF library supports or can add the flate encoding compression algorithm and inform you of the results

Josep.

@vingtetun
Copy link
Contributor

It works now.

@josepsanzcamp
Copy link
Author

Hi team.

I tested some PDF generated by TCPDF and renders
fantastic. Too, I detect that
some others PDF too generated by the same library
don't render correctly. I
attached the demostration PDF file to check it.

Thanks for your notification email.

Josep.

Josep Sanz Campderrós
The SaltOS & RhinOS projects
http://www.saltos.net

El 2011-08-25 03:58:49, vingtetun escribió:

It works now.

--
Reply to this email directly or view it on
GitHub:
https://github.com/andreasgal/pdf.js/issues/11#issuecomment-1896399

@josepsanzcamp
Copy link
Author

Hi Chris Jones and Andreas Gal (and all the pdf.js
team).

I'm happy to inform you that I'm using in my
application SaltOS your pdf.js
library to read PDFs online.

Previously, I offered this functionality using
some server programs as "pdfinfo"
and "convert" to retrieve some information and
images about the document and
pages from the pdf. The big inconvenient of this
technique is that requires some
programs in the server, the computational
consumption in the server and the
bandwidth used to the transfer between server and
client.

Now, with pdf.js, only is needed transfer the PDF
and the client can paint
directly all pages.

Thanks for your great job.

You can contact me if you want or need help.

Josep.

Josep Sanz Campderrós
The SaltOS & RhinOS projects
http://www.saltos.net

El 2011-08-25 03:58:49, vingtetun escribió:

It works now.

--
Reply to this email directly or view it on
GitHub:
https://github.com/andreasgal/pdf.js/issues/11#issuecomment-1896399

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants