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

pdfmake printing issues #51

Closed
pcpuser opened this issue Jul 16, 2014 · 9 comments
Closed

pdfmake printing issues #51

pcpuser opened this issue Jul 16, 2014 · 9 comments

Comments

@pcpuser
Copy link

pcpuser commented Jul 16, 2014

please some of the pdfs generated by the pdfmake are not printable by printers. Some of the documents when printed would print characters such as "!#&@$" . Some printers would error out "49.4C02". Please excuse me if I have not given enough details, but can you suggest how we can get around printer issues, and, is there a way to generate image instead of pdf.

Your help is really appreciated

@pcpuser
Copy link
Author

pcpuser commented Aug 26, 2014

the major culprit is the Roboto fonts.

https://code.google.com/p/android/issues/detail?id=38383
#33

@ankurgathia
Copy link

I embedded arial font, that is also not work....

@bpampuch
Copy link
Owner

Unfortunately I'm unable to reproduce this :(

@Mikolaytis
Copy link

i think that's exactly that's i am got in #103 . It's reproducing in the playground.
I have already tried to find and fix that... unsuccessful

@pcpuser
Copy link
Author

pcpuser commented Oct 13, 2014

We used the following approach to fix the problem

See comment from 'tonitornado' - foliojs/pdfkit#69.

@Mikolaytis
Copy link

Can you give a completed vfs_fonts.js? I am using times new roman too

@bpampuch
Copy link
Owner

@pcpuser - thanks for the links !!!

I've upgraded Roboto fonts (vfs_fonts in 0.1.11 already contains them). Can't check them though (I don't have a troublesome printer).

@bpampuch
Copy link
Owner

related to #113, working now

@ghost
Copy link

ghost commented Oct 28, 2014

Tinkering with pdfMake, I found that in making a table, if a data value is a number rather than a string, it causes an error in DocMeasure in measureNode. I got an "Unrecognized document structure: 25" so I had to wrap in String().

Any thoughts on a pdfMakeLite? A 367kb min.js file is pretty a large file! Things like compression, Roboto default font, etc. might be candidates to remove (I only want to print tables!). Angular.min is only about 100kb.

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

4 participants