/    Sign up×
Community /Pin to ProfileBookmark

How to generate pdf from html page using javascript with cross language compatibility

I have tried several methods including “jspdf” library but it can convert html page into pdf which is in English only and not working for other languages like Hindi, Assamese etc. Also data is getting truncated even when I have used “style=”display: inline;””

Please suggest.
Thanks

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@rootMar 05.2018 — Use PHP server-side script to do this.

You also are competing with web browsers like chrome that can save to PDF as well as add on scripts to browsers that produce pdf files from a "print job" and other methods like programs that act like a printer on the users computer that is made from a print job.

So you sound like you are trying to reinvent the wheel...
×

Success!

Help @Meha_Bhandari spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...