- This topic has 8 replies, 5 voices, and was last updated 11 years, 1 month ago by support-michael.
-
AuthorPosts
-
ProffieMemberHi
I am using the jsPDF to create a PDF out of a dynamic loaded mobi page. that does work
unfortunately, I seem to miss the line wrap function in jsPDF and I could find nothing in the web how to do this.
So I tried to use the bytescout PDF generator. Now, I do not know, how to display the PDF in my app anylonger, as this function is beyond my grab.
has anybody already successfully used a method for generating PDF in mobione?
if so, I would be glad for a hint and push in the right direction.
support-michaelKeymasterThis topic appears to be beyond our general tech support scope.
Can you restate the specific problem you have? Do you now have a pdf file that you want bundled in your app or is it something else?
ProffieMemberHi Wayne,
My App generates a document(form), based on the user input including text input, multibox input and camera pictures. this document/form is displayed as a dynamic screen. Then I want to generate a PDF out of the application, showing this form and sending that by E-Mail.
with jsPDF, it is possible to generate the PDF and see it in the application, but unfortunately the line wrap function is not available (to me,..)
the Bytescout javascript does have the line wrap functionality, but does not show the PDF in the app, as I am missing to know the correct call for that.
Now, I do not care, which javascript code I need to use, as long as I can generate a PDF from my screen. That is Why I asked the question if anybody has already done this.
Any Idea?
thanks
support-octavioMemberHi Proffie,
Have you proven out your approach outside of mobione. If not, we typically recommend a development strategy that isolates, tests and proves the functionaly of each major component prior to integration. Then incrementally integrate the components testing along the way. Given this, have you proven that your pdf generation utility is properly configured and the control logic works correctly in isolation?
ProffieMemberHi Octavio,
As I understand, there has been no use of PDF generation in MobiOne so far to your knowledge. So I will try to dig deeper into the core javascript of jsPDf and Bytescout PDF to get it to run. It does run inside a HTML widget, but not per javascript run on a button, which I would need.
As soon as I have the solution, I will post it here.
Thanks
ProffieMemberOk, in the End it was simple. there was a plugIn available for jsPDF, where you can set the line width…. easy if you know it as usual.
I attach a sample mobi file. please note, that you need the jsPDF libraries installed to run it and point the included js-files to that diectory.
The application will generate a PDF based on the input of the text fieldHope, this serves others as well.
Attachments:
You must be logged in to view attached files.
Robert GardnerParticipantCurious to know if you then can email this PDF document directly out of your Mobi app as an attachment? If so, can you explain/show how you did it?
Thank you,
daviteParticipantDo you have any update in this topic. Do you now how to send this pdf as an attachment?
support-michaelKeymaster>Do you have any update in this topic. Do you now how to send this pdf as an attachment?
1) pdf generation is not in scope as a MobiOne feature. This is an independent effort.
2) MobiOne’s email services do not support attachments. Similar to #1 you can accomplish this with your own custom implementation.
-
AuthorPosts