PDF FILE OUTPUT METHOD IN SMART PHONE APPLICATION

Asked 2 years ago, Updated 2 years ago, 59 views

Thank you for your help.

I am currently developing a smartphone application with monaca.
"Regarding the application of the flow chart that answers ""YES"" and ""NO"", I would like to print the results and the answers to the questions in PDF format, launch the mail software, and attach it."

I was able to send an email with the questions, answers, and results on the body of the mail software, but if possible, I would like to make these PDFs.Please tell me what kind of method there is.
Thank you for your cooperation.

android ios monaca pdf

2022-09-30 20:11

1 Answers

Found a library called jsPDF.
https://parall.ax/products/jspdf

You can easily add text and images using methods such as text() and addImage().

However, if you use Japanese, it seems to be broken into characters.

Here seems to force Japanese output by drawing text in canvas, but it's not a very beautiful way.


2022-09-30 20:11

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.