How to return a pdf (iText) file using Portlet?

Dear all,
I want to know how to return a pdf file using iText API via Portlet.
I can manage to return a pdf file through a standalone servlet, but I don't have idea of how to generate a pdf file via Portlet.
Can anyone help me?
Thanks
George (HK)
Welcome to my blog at www.xanga.com/georgelkh

Hello,
that is easy. In your driver program, please check the inputs of the job/ generator function modules.
You provide GETPDF = 'X' attribute what will make the FM not to print the form or display the preview but to return the binary stream of the PDF data (type FPCONTENT) what is a RAW or something. Next look for the PDF output parameter to get the returned binary data and send it as you wish through JCo.
Regards Otto
p.s.: Note there is Adobe forms forum under NetWeaver, you can find me and the others doing Adobe every day

Similar Messages

  • How do I convert a PDF file to a PDF/A file using Acrobat 7.0 Professional?

    How do I convert a PDF file to a PDF/A file using Acrobat 7.0 Professional?

    Hi,
    There are a few ways to export your PDF file to Word or Excel files.
    Using Web UI:
    Log into https://exportpdf.acrobat.com/signin.html with your Adobe ID and password
    Select “Export from PDF”
    Click “Select Files” button then choose your PDF file
    Select the format from the list below
    Check ON “Recognized text in” if your PDF file is scanned images to recognize the image to text
    Click “Export” button
    Click “Download” button in the progress bar after completion of exporting to download the file to your computer.
    Using Adobe Reader:
    Launch Adobe Reader X or Reader XI
    Select “Tools” and click “Sign In” link to sign in with your Adobe ID and password
    Select “Export PDF” then click “Select PDF file” link
    Select format from “Convert To”
    Click “Convert”
    Click “Download Converted File” link to download the file to your computer after the process is completed.
    Download Files:
    All exported files are stored at https://files.acrobat.com and you can login with your Adobe ID and password.
    Or at Web UI you can click “FILES” next to “TOOLS” at top or click “View All files” in the file list of “Export from PDF” tool( or “Convert to PDF” or “Combine Files” tools for PDF Pack users) that will redirect you to the above site(https://files.acrobat.com)
    From Reader you can click “Store Files” under “Tools” and click the link of “Open Acrobat.com Files”
    Hisami

  • How I can send pdf document  file in I pad

    How I can send pdf Document file in I Pad

    A simple and popular way to copy files and share files amoung your devices.
    https://www.dropbox.com/
    Using iTures to transfer files:
    http://support.apple.com/kb/HT4094?viewlocale=en_US&locale=en_US
    Files Connect -- The swiss army knife of remote file connect
    https://itunes.apple.com/us/app/files-connect/id404324302?mt=8
    Windows File server
    http://itunes.apple.com/us/app/filebrowser-access-files-on/id364738545?mt=8

  • How to create a new excel file using Excel Destination when Destination file not exists.

    how to create a new excel file using Excel Destination when Destination file not exists.

    Just need to set an expression for excel connectionstring and set delay validation to true and it will create it on the fly.
    The expression should return the full path with dynamic filename in each case.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How do I produce an excel file using java code

    How do i produce an excel file using java code.
    If it is possible would ne one have ne source code as an example.
    I have tried looking up information on outputing the information to a *.csv file but unfortunality i have had no luck in finding any information. To be exact ne source code.
    Thanks
    Lee

    That's what I use and I'd be the first to admit that it's very messy. But it works. Go use Google and see what else you can find.

  • How do I open a .dd file using OS X?

    I had a corrupt external HDD which i used to use with an old laptop. I used data recovery software and managed to recover 33gb of data. However it is saved in the old diskdoubler format. (.dd file extension). How do I open a .dd file using OS X? ive tried stuffit and unarchiver but they dont work. any help?

    Look at these links.
    http://forums.appleinsider.com/archive/index.php/t-40241.html
    http://www.enews.org/blog/2009/03/opening-diskdoubler-files-from-mac-os-9.html
     Cheers, Tom

  • How to write data to text file using external tables

    can anybody tell how to write data to text file using external tables concept?

    Hi,
    Using external table u can load the data in your local table in database,
    then using your local db table and UTL_FILE pacakge u can wrrite data to text file
    external table
    ~~~~~~~~~~~
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7002.htm#i2153251
    UTL_FILE
    ~~~~~~~~~
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_file.htm#sthref14093
    Message was edited by:
    Nicloei W
    Message was edited by:
    Nicloei W

  • How to create and read text file using LabVIEW 7.1 PDA module?

    How to create and read text file using LabVIEW 7.1 PDA module? I can not create a text file and read it.
    I attach my code here.
    Attachments:
    File_IO.vi ‏82 KB

    Well my acquisition code runs perfect. The problem is reading it. I can't seem to read my data no matter what I do. My data gets saved as a string using the array to string vi but I've read that the string to array vi (which I need to convert back to array to read my data) does not work on the pda. I'm using version 8.0. So I was trying to modify the program posted in this discussion so that it would save data from my DAQ. I did that but I still can't read the data after its saved. I really don't know what else to do. All I need to do is read the data on the pda itself. I can't understand why I'm having such a hard time doing that. I found a possible solution on another discussion that talks about parsing the strings because of the bug in the "string to array" vi. However, that lead me to another problem because for some reason, the array indicators or graphs don't function on the pda. When i build the program to the pda or emulator, the array indicators are faded out on the front panel as if the function is not valid. Does this kind of help give a better picture of what I'm trying to do. Simply read data back. Thanks.

  • How do I install PDF maker files

    Every time I try to convert a word file to PDF, I get a messarge indicating that I need to install PDF maker files. The message also tells me to run repair, which is not effective.

    Very good idea. Looks like the tech world will allow cats to be skinned in 
    more than one way. Thanks, agaiin.
    In a message dated 10/28/2014 11:27:39 A.M. Eastern Daylight Time, 
    [email protected] writes:
    how  do I install PDF maker files
    created by a C student (https://forums.adobe.com/people/aCstudent)  in 
    Creating, Editing & Exporting PDFs - View the full  discussion
    (https://forums.adobe.com/message/6875700#6875700)

  • How can i rename a jar file using only java code

    i have tried everything i can think of to accomplish this but nothing works.

    ghostbust555 wrote:
    In case you geniuses haven't realized I said I tried everything I can think of not that I tried everything. So help or shut up I realize that I didn't try everything but if you can't figure it out either DO NOT POST.
    And the question is how can i rename a jar file using java code? As it says in the title. Read.I would tell you to use the File.renameTo method, but surely that would have been obvious, and you would have tried it already? But maybe you didn't. You were kind of lacking in details in what you tried.
    And yes, I am a genius. Just don't confuse "genius" with "mind-reader".

  • How to access the database jar file using the derby 10.2.1.6 database ?

    Hi,
    How to access the database jar file using the derby 10.2.1.6 database ?
    I have used like below. And i am getting the following the error:
    "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.apache.derby.jdbc.EmbeddedDriver'
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136)"
    My context.xml file looks like this:
    <Context crossContext="true">
    <Resource name="jdbc/derby" auth="Container"
    type="javax.sql.DataSource" driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
    url="jdbc:derby:jar(\CalypsoDemo\database.jar)samples"
    username="xxx" password="xxx" maxActive="20" maxIdle="10"
    maxWait="-1"/>
    </Context>
    What could be the reason.?
    Any suggestions will be appriciated.
    Thanks in Advance,
    Gana.

    ya, I have restarted. Can you please tell me whether the path which i am giving is right or not in the context file?
    Thanks,
    Gana.

  • How can I un-pdf a file?

    I made a pdf of a file which I can no longer find.
    I do have the pdg.
    How can I un-pdf the file?
    -Govan

    I made a pdf of a file which I can no longer find. I do have the pdg. How can I un-pdf the file?
    Erhm ... you made a PDF and you have a PDG? You mean you have a PDF? And you want to go from the PDF you have to the Pages document you do not have?
    If that is indeed what you want, then what you want is not possible. The source data structures of your Pages document are not part of your PDF.
    What you can do, though, is to try to extract the Unicode plain text from your PDF. Then you can place that Unicode plain text back into a new Pages document.
    For illustrations and images in your PDF you can place the pages with these illustrations and images in your Pages document, and then crop the pages to leave only the illustrations and images you want, leaving out the typographic composition.
    Best,
    Henrik

  • How do I convert PDF/JPEG file in "Brush Script MT" font to Word Document

    How do I convert PDF/JPEG file in "Brush Script MT" font to Word Document? (I checked with Acrobat XI pro but no use

    You cannot in Adobe Reader. You can try in Acrobat, but first you must try to run OCR (Text Recognition). I have never tried OCR on a script font.

  • How to achieve conversion of PDF to PDF/A files using Java API?

    Hi,
    We are required to convert existing pdf files to pdf/a files. Is there a way to programatically achive this using any of the Java APIs?
    Thanks

    Which of the LiveCycle products are you looking at? (there is no Java API to Acrobat)

  • How to delete data from a file using IO package

    Hi All,
    i am trying to remove some content of the file.
    this content is not at starting of file not even at end of file.
    can anybody tell me how can i delete number of lines from file using IO package.

    iam having some data in text file .ex:in flowrist.txt
    12/5/07,500,300,6000 like many set of datas are
    there.In these if i want to delete the data based on
    the date which i specified.How to do this specific
    deletion?You need to open a stream to read in the file and then use the indexOf method provided in the Sting class to check if the line contains the date or whatever String you are looking for, if so then skip that line and store or re-write the lines you wish to keep, as well as some extra lines you may wish to add.
    Take a look below at this example found on Google.
    http://www.java-tips.org/java-se-tips/java.io/how-to-read-file-in-java.html
    The above read a file line by line and prints it to console. You should be able to modify this, instead of using System.out to print the line you should use index of to check the lines for a date/String. Index of return -1 if the String you specify is not in the line you parse.

Maybe you are looking for

  • I updated my iTunes to 11.3.0.54 yesterday and since then iTunes can't recognize my iPhone 4s and even an iPod

    I updated my iTunes to 11.3.0.54 yesterday and since then iTunes can't recognize my iPhone 4s and even an iPod what to do?

  • Instant client with ODBC driver

    Hi, I have problem with the instant client version 10.2 with ODBC driver. I have the instant client base package and ODBC package installed in my computer. the Oracle ODBC driver did appear in the ODBC driver list, when I test the connection with dri

  • ACH File addenda record for IAT transactions

    Hello Experts, While generatin the DME file for IAT payment method my addenda records are coming as 0000 while they should be either of 7,8 or 9. Not sure the cause of this. In this regard I seek your suggestion whether there are certain configuratio

  • PO Approval Process - Statuses Query

    Hi All, I am not able to figure out when will the following combination of statuses will occur in a PO Collaboration with Approval Process. Distribution Status : Updated by Customer Change Distribution Status : Published by Supplier It will be great

  • Keeping Wireless Seperate from Wired

    I have an existing wired DSL network with some of the machines using static IPs. I would like to add wireless but have it completely seperate so anyone on the wireless cannot access the wired network. Should I use a AP or Router? I would like to use