facebook

PDF Generation

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #341550 Reply

    Proffie
    Member

    Hi
    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.

    #341624 Reply

    support-michael
    Keymaster

    This 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?

    #341684 Reply

    Proffie
    Member

    Hi 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

    #341702 Reply

    Hi 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?

    #341727 Reply

    Proffie
    Member

    Hi 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

    #341733 Reply

    Proffie
    Member

    Ok, 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 field

    Hope, this serves others as well.

    Attachments:
    You must be logged in to view attached files.
    #343313 Reply

    Robert Gardner
    Participant

    Curious 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,

    #344093 Reply

    davite
    Participant

    Do you have any update in this topic. Do you now how to send this pdf as an attachment?

    #344096 Reply

    support-michael
    Keymaster

    >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.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: PDF Generation

You must be logged in to post in the forum log in