Generate PDF

Certified Associate Developer

I have an instance where the user selects 1 to many event numbers to generate a report.  I am attempting to set it up where I have one template and it fills it out and combines them all to together to generate a final report that maybe any number of pages.  I have a Query node that pulls the data and a Fill PDF node that fills in the data once.  How can I get this setup where is basically loops through the 2 nodes, adding a page to the PDF each time?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    PDF Tools, I believe, has a "merge PDF" smart service that can make a single PDF out of an arbitrary number of other PDFs, if that's any help.

  • 0
    Certified Associate Developer
    in reply to Mike Schmitt

    That does help, just not sure how to configure the "Fill PDF" and the "Merge PDF" properly.

  • 0
    Certified Senior Developer
    in reply to AllenP

    Hi Allen

    1) Please try the smart service -PDF Doc from Template.We use the same for pdf creation (PDF Doc from Template also does the same.)
    We need to create template using adobe/other pdf template tools
    and then do the proper settings.
    ex: for date value : label is "Date" and then on the value
    field. Please create with #Date#.. import the template and mention the same. Map the values to pdf custom fields

    Save the document name in the output tab in the pv: ex:olddocname

    2)Next step is  use Merge pdf smart service.

    below are the settings
    input tab
    Create New Document (boolean):false
    existing document(Document):pv!olddocname
    documents(Document):{to document(pv!olddocname),pv!newdocument}

    output tab: save the below value
    NewDocumentCreated

    After you create the documents, pls try to loop part and merge the docs. Please make sure the always pv!contains latest document..

    Please let me know if above logic works for you.

    Have a good Day!

Reply
  • 0
    Certified Senior Developer
    in reply to AllenP

    Hi Allen

    1) Please try the smart service -PDF Doc from Template.We use the same for pdf creation (PDF Doc from Template also does the same.)
    We need to create template using adobe/other pdf template tools
    and then do the proper settings.
    ex: for date value : label is "Date" and then on the value
    field. Please create with #Date#.. import the template and mention the same. Map the values to pdf custom fields

    Save the document name in the output tab in the pv: ex:olddocname

    2)Next step is  use Merge pdf smart service.

    below are the settings
    input tab
    Create New Document (boolean):false
    existing document(Document):pv!olddocname
    documents(Document):{to document(pv!olddocname),pv!newdocument}

    output tab: save the below value
    NewDocumentCreated

    After you create the documents, pls try to loop part and merge the docs. Please make sure the always pv!contains latest document..

    Please let me know if above logic works for you.

    Have a good Day!

Children