Record extraction to PDF

Hi all,

Is there an easy way to generate a PDF from a record, for example, while displaying a record then using a related action a pdf could be generated which later can be printed.

Thank you.

OriginalPostID-257250

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    @vasilisg If you want to build the smart service in order to convert Excel into PDF, then you can use the attached java code followed by Appian Annotations that will be needed to prepare input and output parameters, however before using the attached example, you need to download few jar files and set it under classpath, those are:-

    ======================================================
    dom4j-1.6.1.jar
    itextpdf-5.4.0.jar
    log4j-1.2.17.jar
    poi-3.9.jar
    poi-ooxml-3.5-beta5.jar
    poi-ooxml-3.6-20100309.jar
    poi-ooxml-schemas-3.7-beta1.jar
    xmlbeans-2.5.0.jar
    xmlbeans-xmlpublic-2.4.0.jar
    =====================================================

    And then follow the attached Java code and convert the code according to your requirement.
    Also attached the output of the attached Java file, which is generating Excel to PDF successfully.

    Hope this will help you to build the Smart Service Successfully.


    ExcelToPDF.java


Reply
  • 0
    Certified Lead Developer
    @vasilisg If you want to build the smart service in order to convert Excel into PDF, then you can use the attached java code followed by Appian Annotations that will be needed to prepare input and output parameters, however before using the attached example, you need to download few jar files and set it under classpath, those are:-

    ======================================================
    dom4j-1.6.1.jar
    itextpdf-5.4.0.jar
    log4j-1.2.17.jar
    poi-3.9.jar
    poi-ooxml-3.5-beta5.jar
    poi-ooxml-3.6-20100309.jar
    poi-ooxml-schemas-3.7-beta1.jar
    xmlbeans-2.5.0.jar
    xmlbeans-xmlpublic-2.4.0.jar
    =====================================================

    And then follow the attached Java code and convert the code according to your requirement.
    Also attached the output of the attached Java file, which is generating Excel to PDF successfully.

    Hope this will help you to build the Smart Service Successfully.


    ExcelToPDF.java


Children
No Data