How to generate Pdf in Oracle ADF?

Hi,
I want to generate Pdf in Oracle ADF? I have no idea how to do it?
Please Help.....

Hi,
I have simple web page & i want a part of my page to be converted into pdf...
Is it necessary to use FOP or Itext??
is there any other alternative to generate Pdf??

Similar Messages

  • How to generate PDF report directly instead of RPT report by using JRC ?

    Hi,
    Good Day !
    How to generate PDF report directly instead of RPT report by using Crystal Reports XI Release 2 Java Reporting Component (JRC) in desktop (Swing thick-client) ?
    My GUI program will generate a RPT report, then i can export to PDF file, this is ok, no problem.
    BUT
    i want it direct to generate a PDF report, not a RPT report.
    The code like below (2 java files)
    ClassA.java
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(XXX, 0);  
    ParameterFieldController paramFieldController = reportClientDoc.getDataDefController().getParameterFieldController();
    paramFieldController.setCurrentValue("", "XXX", DomainClass.getXXX());        
    new ReportViewerFrame(reportClientDoc);
    // End of ClassA.java
    // Begin ReportViewerFrame.java
    public class ReportViewerFrame extends JFrame
           //Initial window frame properties.
         private final int XPOS = 80;
         private final int YPOS = 60;
         private final int WIDTH = 760;
         private final int HEIGHT = 550;
         private ReportViewerBean reportViewer = new ReportViewerBean();     
         private ReportClientDocument reportClientDoc = new ReportClientDocument();     
         public ReportViewerFrame(ReportClientDocument reportClientDoc) throws    Exception
              //Initialize frame properties.
              this.setResizable(true);
              this.setLocation(XPOS, YPOS);
              this.setSize(WIDTH, HEIGHT);
              this.setTitle("Crystal Report Java Viewer");
              //Add GUI components to the frame including the ReportViewerBean.
              addComponents();
              //Add GUI listeners to the frame.
              addListeners();
              //Set the report that the ReportViewerBean will display.
              this.reportClientDoc = reportClientDoc;
              reportViewer.setReportSource(reportClientDoc.getReportSource());     
              reportViewer.init();
              reportViewer.start();
              //Display the frame.
              this.setVisible(true);     
    How to set the export option to PDF base on existing code ?
    Where can i download this package/jar ?
    regards

    Please find a console app that you can extend it to a JFrame app by importing the relevant swing package:
    //Crystal Java Reporting Component (JRC) imports.
    import com.crystaldecisions.reports.sdk.*;
    import com.crystaldecisions.sdk.occa.report.lib.*;
    import com.crystaldecisions.sdk.occa.report.exportoptions.*;
    //Java imports.
    import java.io.*;
    public class ExportReport {
         static final String REPORT_NAME = "ExportReport.rpt";
         static final String EXPORT_FILE = "C:\\myExportedReport.pdf";
         public static void main(String[] args) {
              try {
                   //Open report.               
                   ReportClientDocument reportClientDoc = new ReportClientDocument();               
                   reportClientDoc.open(REPORT_NAME, 0);
                   //NOTE: If parameters or database login credentials are required, they need to be set before.
                   //calling the export() method of the PrintOutputController.
                   //Export report and obtain an input stream that can be written to disk.
                   //See the Java Reporting Component Developer's Guide for more information on the supported export format enumerations
                   //possible with the JRC.
                   ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
                   //Release report.
                   reportClientDoc.close();
                   //Use the Java I/O libraries to write the exported content to the file system.
                   byte byteArray[] = new byte[byteArrayInputStream.available()];
                   //Create a new file that will contain the exported result.
                   File file = new File(EXPORT_FILE);
                   FileOutputStream fileOutputStream = new FileOutputStream(file);
                   ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(byteArrayInputStream.available());
                   int x = byteArrayInputStream.read(byteArray, 0, byteArrayInputStream.available());
                   byteArrayOutputStream.write(byteArray, 0, x);
                   byteArrayOutputStream.writeTo(fileOutputStream);
                   //Close streams.
                   byteArrayInputStream.close();
                   byteArrayOutputStream.close();
                   fileOutputStream.close();
                   System.out.println("Successfully exported report to " + EXPORT_FILE);
              catch(ReportSDKException ex) {
                   ex.printStackTrace();
              catch(Exception ex) {
                   ex.printStackTrace();
    As to the relevant jar(s) deployment refer to this link (Java Reporting Component Configuration):
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/JRC_SDK/jrc_java_dg_doc/doc/jrcsdk_java_dg/WorkingWithJRC2.html#1004391
    Cheers

  • How to generate pdf report and automatically save in the folder?

    Hi all,
    I want to ask, how to generate pdf report and automatically save in the folder?
    Actually, if i run pdf report and show to screen. Now do not need to show to the screen but save the pdf file in the folder.
    If anyone know, please share to me.
    Thanks and regards,
    Iwan

    Hi all,
    Thanks for the reply.
    when i run pdf report, and i got this URL to show the pdf report.
    http://190.180.55.73:7778/reports/rwservlet/getjobid3828?server=sitcnrepsvr
    Do any body know where can i get this pdf report that i have run in application server report folder ?
    Thanks and regards,
    Iwan

  • How to generate PDF file through reports using forms 6i

    Hi all,
    I am using oracle 10g with forms 6i and reports 6i.I need to generate pdf file where clicking a button a report should be called and the report should be generated as a .pdf file in the source i have specified(ex. d:\...).Is this popssible with forms?.how can i achieve this.Kindly help me with suitable answers.Thanks :)
    Regards
    Vids

    hi,
    regarding report, there is a dedicated report forum. you should post there.
    but answer for your question is form is nothing to do with the pdf generation. you can call the report from the as usual.
    In the report you should set the properties like
    destype to 'file'
    desname to 'path with file name'
    desformat to 'pdf'

  • How to generate PDF automatically.

    Hello,
    I am generating INVOICES using REPORTS 6i.
    After created the PDF format, I send to the customer by email.
    I would like to do this process automatically.
    So how can I generate PDF automatically?
    There is any pl/sql functionality available to generated PDF automatically.If so how can I generate similar like report 6i format and symbols (Logo).
    Pls give me some ideas.
    Thanks,Kannan.K

    Kannan,
    a scheduler is part of Reports, with which you can automate to generate Reports. There's a Queue Manager with your installation. But for this you need Application Server based Reporting - not Client/Server.
    Also it's possible to send an PDF-Report as an EMail-attachment directly. Starting with 9i there's also an PL/SQL-API available (Event-based Reporting).
    regards
    Rainer

  • How to generate pdf report in swing

    Hello,
    can you help me?
    i want to generate pdf report in my swing based project but i don't know about any idea of this report generating
    procedure . Please help me.

    shesh_07 wrote:
    Hello,
    can you help me?Can you help yourself? Two suggestions I have for posting to a technical forum are:
    1) Add an upper case letter to the start of each sentence. This helps the reader to scan the text quickly, looking for the important parts. It also helps to dispel the impression that the writer is just lazy.
    2) Try to do some research on your own, summarise it and state any conclusions you have reached. Ask a specific question and generally, try not to sound so pathetic.
    i want to generate pdf report ..Search for [Java PDF|http://lmgtfy.com/?q=java+pdf] *(<- link).*
    Figure how to generate a PDF report in a class used from the command line, then..
    ..in my swing based project .....wrap a GUI around that class. For details on the latter, see the [Swing tutorial|http://java.sun.com/docs/books/tutorial/uiswing/] *(<- link).*
    ..but i don't know about any idea of this report generating
    procedure . Please help me.Please help yourself.

  • How to generate PDF file from HTML file using Acrobat API's

    Hi,
    I want to generate a PDF file from an HTML file on server side(C# .Net).
    Their is a COM interop called "AcrobatWeb2PDF" availaible but could not find any document regarding how to use it.
    I cant use "Adobe live cycle PDF Generator" as we just have license for Adobe Acrobat 8 Professional.
    Please help...
    Thanks and Regards,
    Anand Mahadik.

    > It is hard to believe that Adobe doesn't provide a toolkit for generating PDF files, so many web based applications have vector based content that needs to be converted to PDF!!!!
    They do, it's just not free (A company in business to make money? I'm sure IBM would never think this way... ;)). As mentioned you have Adobe LiveCycle PDF Generator, which you can customize and extend with Java. You also have the Adobe PDF Library SDK, which is written for use with C/C++ although if you license it from Datalogics (the only company in NA Adobe allows to license the PDF Library) you will also get .NET and Java interfaces (part of the DLE - DataLogics Extensions).
    > There must be a way to generate PDF dynamically on a server or from Javascript!
    JavaScript? Not really, no. As far as I'm aware JavaScript has no file system access capabilities without some form of intermediary (like sending the data to a webservice that writes it out to file). How would you create a PDF file with JavaScript?
    The PDF Standard is also in ISOs hands now (ISO 32000-1:2008), it is no longer owned by Adobe - you can download a copy of the specification from them and write your own library based on that as well.

  • How to generate PDF from an IView

    Hi all,
    I have been reading a lot about generating PDF document, smart form, adobe LiveCycle Forms, BAPI's..etc. but I can not find anything more simple:
    I just would like to show (and maybe save and print) in PDF format (maybe in a popup) an IView content.
    I have read how to generate a pdf file from a binary attribute of the Context, but nothing about how to fill this binary attribute with the data of the current showed IView.
    Is this possible?
    Thanks in advance,

    Hello, Lohitha.
    Thanks for your post. You are right, the general way to create a PDF is like that, using Adobe Interactive Forms.
    Using this, I must design a form and fill it with data binding. But, in fact, what I'm requested to do is just convert the current IView into a pdf file without using any forms, but keeping the IView design.
    Let me explain myself, It could be something similar to convert a .doc file into .pdf.
    I tried this code;
         IPrivatePDFComponentView.IContextElement contextElement = wdContext.currentContextElement();
         byte[] bytes = contextElement.getPdfSource(); //here I get bytes = null since PdfSource is empty if I do not use Interactive Forms!!
         try {
              File file = new File("C:\temp\example.pdf");
              FileOutputStream os = new FileOutputStream(file);
              os.write(bytes);
              os.close();
         } catch (IOException e) {
              // do something
              e.printStackTrace();
    Do you know how could I do that?
    Thanks

  • How to generate pdf from servlet?

    i have problem when running sample FopServlet in fop-0.20.3xxx version, the error seems like NoClassDefFoundError: org/apache/fop/apps/XSLTInputHandler as follow A):
    the structure i place the FopServlet looks like ; where did i do it wrong?
    for i am not familiar with sax and fop, so hope could get a sample which can run or someone else would like to tell me the methods that must be done to make servelt be able to generate pdf!
    thanks in advice,
    <code>
    weapps
    |
    + ---fop
    |
    + WEB-INF
    |
    +---classes
    |
    + -------- FopServlet
    </code>
    A)
    javax.servlet.ServletException: Error instantiating servlet class FopServlet
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:829)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:484)
    root cause
    java.lang.NoClassDefFoundError: org/apache/fop/apps/XSLTInputHandler
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Class.java:237)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:484)

    now i am able to see the result generated via FopServlet, but another question now aroused, that's -how am i able to generate *.fo on the fly by which the servlet make use of it to create pdf file.
    thanks in advice,

  • How to generate PDF using fonts from Extended Font Pack?

    Hello
    Extended Font Pack, available for download contains MyriadPro-Regular.otf font that has cyrillic glyphs.
    I want to generate PDF document with cyrillic unicode data  that can refer to the MyriadPro-Regular font resource without embedding font.
    Are Extended Font Pack resources CID keyed fonts or not?
    Looks like such example of PDF structure allowed me to use it only in ANSI encoding
               'Type':'/Font',
                'Subtype':'/Type1',
                 'Name': '/MyriadPro-Regular' ,
                'BaseFont':  '/MyriadPro-Regular',
                 'Encoding': '/WinAnsiEncoding',
    What values should be for `Subtype` and `Encoding` to render cyrillic unicode (UTF-8 encoded) data and use MyriadPro-Regular Open Type downloaded from adobe and installed into local system without embedding it?
    Thanks

    Sorry for the delay. I admired with investigation of this case.
    My aim is to generate PDF docs on web site that have i18ned content. ALso client does not want to deal with any font licenses (font embedding will raise question about font licensing) and to reduce PDF file size with such approach. So I'm looking for the ability to link fonts in PDF source, that can be easiely downloaded from adobe.com and installed into local desktop. With Latin group (en-us, french, german) we  can use one of the 14 standard fonts, for CJK - Adobe Asian Font pack. I was considering (Myriad Pro or Minion Pro) font resources from Extended Font pack to cover Cyrillic glyphs. I observed that such fonts are usually installed with Adobe Reader installation (MyriadPro-regular.otf). To render cyrillic glyphs I followed such steps like converted into cp1251 encoding range of the cyrillic unicode data (as you told those fonts do not support unicode encodings the same way as CID keyed asian fonts) and pointed to the Type1 MyriadPro-Regular with custom WinAnsiEncoding. One problem I faced with is - that glyphnames are differrent in diferent Extended Font pack versions. I mean that cyrillic glyphnames for the Adobe Reader 8 started from `afii100xx`, when for the Adobe Reader 9 they are named `uni0xx` for the same font named MyriadPro. I used such glyphnames in the /Differences list in PDF source. How can I generate PDF source that can be viewed successfully in both Adobe Readers version 8 and 9?

  • How to generate PDF with bookmarks?

    Hi,
    The business request is to have pdf report with bookmarks. There is no predefined bookmark object in Livecycle Designer/SFP so my idea is to add some scripting to the form to generate bookmarks dynamically. I defined a standard pdf form with several lines of JavaScript embedded. The script is running in the form preview in Livecycle  Later I was testing the form by calling its function module and looking at the generated PDF file. Unfortunately it seems there is no script embedded in the final output PDF generated by ADS.
    Is Javascript supported in pdf forms? Do I need to perform any additional operations to enable the Javascipt? Do I need to pass additional parameters to ADS? I tested the following settings:
           fp_docparams-fillable = 'X'.
           fp_docparams-DYNAMIC = 'X'.
           fp_outputparams-getpdf = 'X'.
           fp_outputparams-PDFTAGGED = 'X'.
           fp_outputparams-PDFCHANGESRESTRICTED = ' '.
    I appreciate any suggestion.

    Hi Lata,
    May be there is some error in the JavaScript code written.
    Sometimes if there is an error in JavaScript then from where the error occurs from there the JavaScript wont work in the Adobe Form.
    To check whether JavaScript contains errors or not. You just simply open your Adobe Acrobat Reader goto Edit in that goto Preferences and in that Select "JavaScript" in that you find the JavaScript Debugger there you enable "Show Console on errors and messages".
    This may help you in some way or the other.
    Regards
    Pradeep Goli

  • How to generate PDF report in Sharepoint Office 365

    Hi,
    We are building a custom webpart using sandbox solution and would like to generate report in PDF. Anyone have a clue?
    Thanks in advance ;
    Cheers, IXI solution

    You can use SSRS reports which can be saved in any format. Refer to the following post for more information
    http://sharepoint.stackexchange.com/questions/86100/best-way-to-generate-pdf-report
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/7a1b7d4d-c55d-4621-88d2-619a1ab23448/export-sharepoint-chartsreports-to-pdf?forum=sharepointadminprevious
    Alternatively, you could also try this solution from CodePlex
    http://pdfreport.codeplex.com/
    --Cheers

  • How To Generate PDF File IN PHP?

    Hello.programmer.
    I am a php  beginner,I want to creat Pdf file in pHP ,but what can I do ?
    I have   found[ PHP PDF |http://www.phpkode.com/projects/category/php-pdf/]project already ,but what can I do ?

    Hi,
    Use This code to generate PDF, and Happy code.
    <?php
    // create handle for new PDF document
    $pdf = pdf_new();
    // open a file
    pdf_open_file($pdf, "philosophy.pdf");
    // start a new page (A4)
    pdf_begin_page($pdf, 595, 842);
    // get and use a font object
    $arial = pdf_findfont($pdf, "Arial", "host", 1); pdf_setfont($pdf, $arial, 10);
    // print text
    pdf_show_xy($pdf, "There are more things in heaven and earth, Horatio,", 50, 750); pdf_show_xy($pdf, "than are dreamt of in your philosophy", 50, 730);
    // end page
    pdf_end_page($pdf);
    // close and save file
    pdf_close($pdf);
    ?>
    All the Best
    Madhu....

  • How to generate PDF copy of invoice list

    Hi All,
    I need a favor from you in helping to generate a PDF copy to invoice list .
    I observed that  spool is not generated for this print output of invoice list but output successfully triggered.
    we have z report (zretrieval ) to generated the PDF  but it's not allowed to generate PDF.
    I tried alternative method by saving the print preview but I can able to save only that particular page.
    our business looking for all invoice list pages in single pdf  so please guide me to proceed further.
    Regards
    Srinivasa Reddy

    I presume your issue is output triggered but PDF file is not generating if the invoice list goes for multiple pages.  If this is correct, then you need to talk to your ABAPer as they only, have to check the  smartform being used for invoice list.
    G. Lakshmipathi

  • CS3: How to generate PDF from multiple HTML files using CSS?

    I have a set of static HTML files. They are nicely formatted using a single style sheet. They interlink. I would like a way to generate a single PDF file from that set of HTML files that preserves the links (of course, they would all link within the single generated PDF because they would not longer be separate files as a PDF). I would also like to preserve the formatting from the CSS so it doesn't look generic. I own CS3 but don't know which tool to use for this, if any. Which tool would I use for this?

    Acrobat Pro

Maybe you are looking for

  • Content conversion in Reciever File  Adapter

    Hi Frens, Iam doing A FCC in Reciever file adapter. My input structure is DT_structure ->Record   ->Row        Field1        Field2        Field3 I have donr the configuration as Recordset Structure : Record,Row Row.fieldSeparator : , Row.endSeparato

  • My apple mac book pro md101 is not working

    hi, My md101 mac book is not working.seems to stop at login page and the screen turns black and only the cursor is being displayed.nothing else i could do it. there is no display of the screen.

  • XSLT - XML

    Hi friends I have to read an XML file from the aplication server in data object inside abap program throught XSLT. Someone can help me? Best Regards.

  • Safari won't display graphics for some web sites

    There are some sites that Safari won't display all of the graphics. For instance, nissanusa.com opens to a blank page with a little "feedback" symbol in the lower right corner. Similarly, the infiniti.com page has some text but no graphics. Both page

  • Ear file transport problem

    Hi Gurus, A new Java web-dynpro application developed in development system, and after transported into productive portal. Everything ok. After that I modify the java program and transported the modified ear file into the QAS portal. The application