-
Notifications
You must be signed in to change notification settings - Fork 4.7k
While Specifying compress : true while creating jsPDF object the result PDF shows garbage character. #2626
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
Comments
@ashakoshti1988 Just try this to reduce file size Happy Coding ..!! |
@saravanacs this is my stackoverflow link, https://stackoverflow.com/questions/37677750/pdf-file-size-too-big-created-using-jspdf . this already working with older jsPDF api, but with new jsPDF latest version and google noto fonts compression gives garbage values other than english |
This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant. |
Probably duplicate of #2743. |
I've encountered this issue as well with non-latin characters. For me, image compression seems to go a long way in reducing the filesize, but the compression would probaly be even better. |
While creating jsPDF object with below method shows correct character on PDF
var doc = new jsPDF('p','pt','a4');
but while creating object with below method and specifying compression as true it shows garbage character on PDF.var doc = new jsPDF({orientation: 'p',unit: 'pt',format: 'a4',compress : true});
I have used Google Noto CJK font after converting otf to ttf and then done base64 of ttf file by using fontconverter page specified in this repo.
Full function is as per below:
any help on this will be appreciated..
The text was updated successfully, but these errors were encountered: