Hi, We have a requirement to generate a PDF (as attached), wherein for

Certified Senior Developer
Hi,
We have a requirement to generate a PDF (as attached), wherein for each set of vehicles, we need to display the repair line items details. We tried two approaches.
1. "MS Word 2007 Doc from Template" smart service: Since docxncolumntable can be used, when the number of tables are predefined, it didnt help our purpose as the no of tables for vehicle and repair line are dynamic.
2. "PDF From XML" smart service: Tried this service with sample xml and xsl file, but the pdf generated cannot be opened.

Please suggest.

OriginalPostID-202837

OriginalPostID-202837

  Discussion posts and replies are publicly visible

Parents
  • Attached are few example documents you can use as a reference
    1) Docx document with desired output - Invoice Format.docx
    2) Docx template created from Invoice Format.docx after replacing a table OOXML in document.xml with a key - Invoice Format Template.docx
    3) Rule code - pass this to MS Word 2007 Doc from Template smart service. This I took from document.xml of Invoice Format.docx and represents Table 1.
    4) Generated docx using MS Word 2007 Doc from Template smart service - Invoice Intermediate.docx
    5) Generated PDF form docx using PDF from DOCX smart service (Dynamic Document Generator plugin) - Invoice.pdf

    If you want to do any modifications in table like label changes value changes, adding rows, cols then modify your rule accordingly. To remove table 1, pass blank value in mapped key.

    Invoice Format.docx

    Invoice Format Template.docx

    rule to generate table.txt

    Invoice Intermediate.docx

    Invoice.pdf

Reply
  • Attached are few example documents you can use as a reference
    1) Docx document with desired output - Invoice Format.docx
    2) Docx template created from Invoice Format.docx after replacing a table OOXML in document.xml with a key - Invoice Format Template.docx
    3) Rule code - pass this to MS Word 2007 Doc from Template smart service. This I took from document.xml of Invoice Format.docx and represents Table 1.
    4) Generated docx using MS Word 2007 Doc from Template smart service - Invoice Intermediate.docx
    5) Generated PDF form docx using PDF from DOCX smart service (Dynamic Document Generator plugin) - Invoice.pdf

    If you want to do any modifications in table like label changes value changes, adding rows, cols then modify your rule accordingly. To remove table 1, pass blank value in mapped key.

    Invoice Format.docx

    Invoice Format Template.docx

    rule to generate table.txt

    Invoice Intermediate.docx

    Invoice.pdf

Children
No Data