Create pdf using a .xdp file and iText

Hello experts,
my question is regarding the generation of a pdf file using a .xdp file and the iText API. I have an .xdp file of a designed form and I would like to generate a pdf using this file, the iText API and the context.
Is it possible? are there any tutorials or examples? any help is welcome!
Thanks in advance.
Alperen

Hi,
Please check the following links:
How to import an xdp-File to Web Dynpro Interactive Forms
https://wiki.sdn.sap.com/wiki/display/XI/CODE-CreateaPDFFileviatheiText+Library
Sample project how to use Itext (pdf) in webdynpro
Itext PDF Creation
Regards.
Rajat

Similar Messages

  • Created a pdf from a word-file and inserted formfields. The fields works in other pdf-readers(nitro,reader etc), but not in adobe reader and acrobat. Please help.

    Hi,
    I have created a pdf from a word-file and inserted formfields for a work related file. I've used nitro pro to create the formfield. They works in nitro, reader, foxit etc. but not adobe reader. From page 3 and out, the font wont show when writing in a formfield. Some formfield doesnt even show.
    Please help me fix this (hopefully before the presentation at work friday) :-)
    File in question: Dropbox - Byggeplassperm_bico_prosjektledelse_2.pdf
    Kind regards
    Tobias

    Agreed. Adobe makes no claims that their Reader will work properly with forms made from third party software.

  • Using add-ins in Word and Excel, I want to create pdfs to display page fit and with bookmark panel displayed. I cannot find how to do this.

    I am trying to create pdfs using add-ins in Word and Excel through Acrobat Pro XI. I cannot set defaults for page size or bookmark display. Does anyone know how to do this?

    Page size is dictated by what is configured for the authoring file. For custom pages sizes you'd make a matching custom page size for Acrobat (see Acrobat's Help).
    For PDF Bookmarks you use Acrobat's PDFMaker with a supported version of Word or Excel.
    You configure the PDFMaker's Preferences such that PDF Bookmarks can be made.
    Coming from Word the default Word Headings are used. You can also configure to used the default Word Styles.
    Coming from Excel you can only use the names of the worksheets within a work book.
    Alternatively you can create Bookmarks for a PDF manually using Acrobat XI (and earlier versions).
    Note that Word "Bookmarks" are in no way the same as PDF "Bookmarks".
    Be well...

  • I am unable to create pdf using adobe printer to a redirected folder on a server running windows server 2003

    I am unable to create pdf using adobe printer to a redirected folder on a server running windows server 2003

    In the app-server-ant.xml file, as indiacted in the error message i am getting, at line 145 it is suppose to get the path to \bin\asadmin.bat from the value of a paramater called 'asadmin'. This value is being set in the beginning of the file.
    The parameter value of 'asadmin' is further referring to value of another parameter called 'javaee.home' which is being set in tut-install/javaeetutorial5/examples/bp-project/build.properties
    I have checked the values of both these parameters and they are set correctly, so since it is still giving me problems, at line 145 i hard coded the path instead of the parameter name:
    I replaced line
    <exec executable="${asadmin}" failonerror="${failonerror}" dir="${javaee.home}">
    with
    <exec executable="c:/sun/appserver/bin/asadmin.bat" failonerror="${failonerror}" dir="${javaee.home}">
    This works.

  • Creating PDF using BAPI

    Hi,
    I am trying to create PDF using BAPI. I got one BAPI(Z_MM_EPSP_BAPI_GET_PO_PDF). That bapi returns bytecodes. How can I generate PDF file using this BAPI output in BLS. Give some example
    Thanks & Regards
    Art

    Art,
    Are you familiar with xMII at all? I would like to answer your question but it seems more like a tutoring lesson rather than a technical problem.
    Please post a problem and not how somone can help you do your work. Unless of course you are willing to paypal some money over. :-D

  • File upload using commons-upload-file and tomcat 5.5

    Hi,
    This is my first post and I hope that I post it at the right place.
    I'm trying to upload a file using commons-upload-file and tomcat 5.5.
    Is there a way to prevent submitting a big file, If I detect that the file being uploaded exceed a limit that I have fixed ?
    i.e. I check the request length, if it's bigger than 1meg I cancel the whole thing and the big file is not transferred.
    The problem that I get at the moment is that it seems that the file is transferred even if I close request inputstream or response outputstream. Any help would be appreciated !
    Thank you
    Redgy

    Well here is a snippet of my code:
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            long maxSize = 50000;
            boolean isMultipart = ServletFileUpload.isMultipartContent(request);
            if(isMultipart){
                // Create a new file upload handler
                ServletFileUpload upload = new ServletFileUpload();
                upload.setSizeMax(maxSize);
                try {
                    upload.parseRequest(request);
                } catch (FileUploadException ex) {
                    ex.printStackTrace();
                    request.getInputStream().close();
                    response.getWriter().print("blah");
                    response.sendError(response.SC_INTERNAL_SERVER_ERROR);
                    response.getOutputStream().close();
        }If the file is bigger than 50kb, it Throws the FileUploadException.
    But whatever I do, It seems that there is still a connection between my browser and tomcat.. any clue ?
    thanks
    Edited by: redgyx on Jan 31, 2008 6:17 AM

  • Scrollbar appearing while creating pdf using AlivePDF

    Hi,
    I am facing a problem while creating pdf using AlivePDF.
    I have a VBox on which I am adding multiple pages. If the content overflows it shows scrollbar. All this is working fine.
    [PHP]
    <mx:VBox x="0" y="80" width="705" height="560" id="content"></mx:VBox>
    [/PHP]
    When I create the pdf using the following code it shows scrollbar in  generated pdf (attached screenshot) while I want all the content without  scrollbar
    [PHP]
    var pg:DisplayObject;
    pg = content.getChildAt(i);
    var pdf:PDF;
    pdf = new PDF (Orientation.PORTRAIT, Unit.POINT, Size.LETTER);
    pdf.setDisplayMode(Display.FULL_WIDTH);
    pdf.addPage();
    pdf.addImage(pg, new Resize(Mode.FIT_TO_PAGE, Position.CENTERED ),0, 0, 0, 0, 0, 1,true,'PNG',100);
    [/PHP]
    Please suggest what changes should I make to fix this.

    If the report didn't change, then perhaps the data did. Check
    to make sure the data being supplied to the report is as expected.
    I have run into mysterious errors where an expected value was of
    the wrong type or a required value was now blank. It is also
    possible to have existing logical errors in an iif() or other
    dynamic evaluation expression that was not previously examined;
    until now. So, is there any unexpected or exceptional data the
    report cannot handle?

  • I created a multi-layered Photoshop file and the backgroud layer changed to gray and all other layers whacked out. I tried reopening it and restarting photoshop. What happened to my file?

    I created a multi-layered Photoshop file and the backgroud layer changed to gray and all other layers whacked out. I tried reopening it and restarting photoshop. What happened to my file?

    Your file is most likely toast, but still:
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Using Frame 9, Acrobat 9.5, suddenly cannot create pdf. The ps file is empty, and the process results in unresolved cross-refs. Have updated w/o success.

    I've beenusing the Tech Comm Suite with Frame 9 and Acrobat 9.5 for years, and suddenly cannot create a pdf of a frame doc. The ps file is empty. This is happening to a colleague using the same suite across the country. Any suggestions? Please help!

    OK, that's pretty plain vanilla. Assuming you've already checked the Adobe
    Updates web page to ensure that both applications are fully patched....
    The thing that jumps out from your procedure is that you don't seem to have
    the Acrobat printer set as the system default because you're selecting it.
    So I'd make that change. And you may want to then reboot, to make sure it
    sticks.
    The second thing I'd do is eliminate your Step 1, because if you don't
    select Print To File and do that dance, if the Acrobat Printer is selected
    (as it should be if it's the system default), Acrobat will create the PS
    file and distill it automatically, then delete the temp files -- that's
    what it's designed to do. (This would also make Step 2 and 3 unnecessary,
    because Acrobat is your system default printer now.)
    Probably no harm in forcing it into manual mode as you're doing, except the
    extra time and keystrokes, but I'd try the other path just to see what
    happens.
    Are you getting any error messages in the Frame Console window?
    Art Campbell
              [email protected]
      "... In my opinion, there's nothing in this world beats a '52 Vincent and
    a redheaded girl." -- Richard Thompson
                                                          No disclaimers apply.
                                                                   DoD 358
    I support www.TheGrotonLine.com, hyperlocal news for Groton MA.

  • Creating PDF using ITEXT API's - error

    Hi,
    In my WebDynpro Application I want to generate a PDF (using ITEXT API's) out of the data retrieved from back end system .
    I used this source code.
    Document document = new Document(PageSize.A4);
    document.open();
    PdfPTable table = new PdfPTable(1);
    PdfPCell cell;
    cell = new PdfPCell(new Paragraph("ONE"));
    table.addCell(cell);
    cell = new PdfPCell(new Paragraph("TWO"));      
    table.addCell(cell);
    document.add(table);
    document.close();
    byte[] b = new byte[100 * 1024];
    b =  document.toString().getBytes("UTF-8");
    IWDCachedWebResource pdfRes = WDWebResource.getPublicCachedWebResource(b, WDWebResourceType.PDF, WDScopeType.CLIENTSESSION_SCOPE,      wdThis.wdGetAPI().getComponent().getDeployableObjectPart(),"FileNameHelloText"));
    I have used Window Manager to create a external window with the URL from pdfRes.getUrl() method.
    After execution i get a pop up window with out PDF document.
    Please let me know your thoughts & solutions to the above mentioned problem.
    Thanks
    Senthil

    Hello Folks,
                   Use the following snippet of the code to generate PDF using ITEXT API.
                                       Document document = new Document(PageSize.A4);
         ByteArrayOutputStream bos = new ByteArrayOutputStream();
         PdfWriter.getInstance(document, bos);
         document.open();
                    PdfPTable table = new PdfPTable(1);
                    PdfPCell cell;
                    cell = new PdfPCell(new Paragraph("ONE"));
                    table.addCell(cell);
                    cell = new PdfPCell(new Paragraph("TWO"));      
                    table.addCell(cell);
                    document.add(table);
                    document.close();
                    byte [] byteContent = bos.toByteArray();
         IWDCachedWebResource cachedResource =
                             WDWebResource.getPublicCachedWebResource(
              byteContent,
              WDWebResourceType.PDF,
              WDScopeType.CLIENTSESSION_SCOPE,
              wdThis
                                          .wdGetAPI()
                                          .getComponent()
                                          .getDeployableObjectPart(),
              "TestPDF");
                  IWDWindow externalWindow =
            wdComponentAPI
                            .getWindowManager()
                            .createExternalWindow(cachedResource.getURL(),                         "PDF Window",true);
                  externalWindow.open();
    Thanks and Regards,
    Gopi

  • Creating PDFs using Pages and Mail

    Hi,
    I'm  a contractor and I use Pages and Mail to to create PDFs of invoices that I email to clients in the form of attachments. I have Mail set up to to send only Windows friendly attachments, and to put them at the end of emails. I have one client, the facilities director of a large community college, who consistently cannot open the attachments; he can read the text of the emails, but he cannot open the attachments. He has to send them to his IT department, where they use a mac computer of some kind to open the attachments, which they send them back to him. I've discussed this with their IT department, and they've told me that they have to use a mac to open my attachments. If anyone can offer some advice on this issue, I'd appreciate it.
    Caoim

    I know from my own experience that although there should be no problems with Mail's attachments, just once in a while recipients have the problems you describe.
    The solution that worked for me 100% reliably was to install the paid for plug-in Attachment Tamer from: lokiware.info
    You can use it for free to test it before committing to purchase, but I'm pretty sure all your recipients will be able to cope with all your attachments.
    To elaborate, I used to have to send numerous attachments every day to mostly PC users. Randomly some would complain that I'd either forgotten to include the attachment (I hadn't) or they couldn't read it/open it/save it, etc. It's quite likely the fault was in the way their email client was configured. All I know is that as soon as I installed Attachment Tamer (it was Mail Attachments Iconizer back then) I never had any more complaints. For the knowledge that I wasn't going to be pestered into trying different ways of sending the files I was happy to pay for the plugin.
    (Usual caveat: I have no connection with Lokiware, but very happy to recommend their product).

  • Unable to save or print .pdf using Safari 7.02. and Reader 11.0.6. (reinstalled reader) files ("save

    Using Mac 10.9.2 and Reader 11.0.6 and Safari 7.0.2, problem seems to be linked to Safari
    Files - using "save as" (.pdf) or "print as" (.pdf) appear as adobe single-page blank documents.  When attempting to open them the following error message appears: "Adobe Reader could not open "filename.pdf" because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).
    Files created under previous versions of Reader are fine.  No problem converting an existing .doc to .pdf using  Reader 11.0.6
    Any suggestions?

    Hi ramsey32 ,
    Thank You for posting in the forums. Kindly help with the information listed below for further assistance.
    1) Does the PDF open fine in safari
    2) Do you get a floating toolbar at the bottom, if yes, choose the save icon from there to save the PDF
    3) Do the files open fine with Preview?
    Thanks,
    Vikrantt Singh

  • Adobe Acrobat as a server to create PDF using PDF templates and field values

    I'm writing a web page to create a PDF using fields that we ask for them in the screen.
    My idea is:
    1. Ask for field values (text values and a photo) in my web
    2. Run Adobe Acrobat to load a PDF template (PDF form) and mix with the field values
    3. Create a final PDF mixing values and template
    4. Show to document to the user in his client web browser. I guess the only way to do that is to create the PDF on a server with Adobe Acrobat Pro and send to the user browser a JPEG that will represent the  PDF: If I do this operation in the PDF visor at the client browser, the problem is that it will will be mandatory to install Adobe Acrobat in each cliente because only this visor can manage javascript.
    Can you tell me if this idea is correct? It is possible to use Adobe Acrobat on a Server to create PDF when some proccess needs?

    and what other Adobe product o procedure can we use to do that?
    I only need to create a PDF mixing PDF Templete, field values and javascript.
    Thanks for your help.

  • Create PDF using DoCmd.Outputto method in legal size page

    I am working in MS Access 2010. I am trying to convert a report to a PDF file.  I am using the following command "DoCmd.Outputto acOutputReport, Report Name, acFormatPDF, FileName".  The report I am using is formatted in legal page
    size.  When the PDF is created  using letter size pages and the buttom of each page is cut off.  I would like to find out why this is happening.
    Bob Gouveia

    Open the report in Design mode. Click Page Setup, go to the Page tab, and click the "Use Specific Printer" readio button. Click Printer. Select the Adobe PDF printer, then click Properties. Make sure Legal is the selected paper size. Click OK twice to get
    back to the page setup window. Make sure the paper Size field is Legal, and Source is Automatically Select.
    When I do this OutputTo --> PDF corretly uses the size (Legal) and orientation (Landscape) that I selected. Does this work for you?
    jmh

  • Converting Back to Original PDF Using Post Script File

    Is there any way to convert back to an original PDF using a post srcipt file that was created from that original PDF?  Allow me to fully explain my situation:
    I converted multiple pdf's that I created into a post script file.  I then utilized Adobe Distiller to convert them into a pdf that could be used for better printing and better usability by the end user.  Unfortunately, when Distiller did this conversion, it replaced my original pdf with the new one.  By the time I realized what was happening, all files had been replaced.
    I still have the post script file that was created from the original PDF file; is there any way possible using this post script file that it can be somehow converted back to the original PDF file?  There are some edits that I need to do on the original PDF.  The pdf that Distiller creates doesn't allow for anymore edits.  My goal is to be able to make my edits without having to re-create 37 pages of documents. 
    The software versions I'm using are as follows: Adobe Acrobat X Version 10.1.4, Adobe Distiller Version 10.1.438.
    If anyone has any ideas, please let me know!

    Hello, thank you for responding.
    Yes the url links start with http:
    For example when I type in
    http://canberracontemporaryartspace.wordpress.com/2013/07/06/staying-out-of-trouble/
    in the word document and click on it, the link works; but when I save it as a pdf it says "not found"
    And then when I type in
    http://www.camberwellspecialists.com.au/what-is-skin-cancer.html
    in the word document and click on it, the link works; but when I save it as a pdf it says "page not found"

Maybe you are looking for

  • How do i extend the bandwidth of my system

    The control problem I am having is extending the bandwidth of a force control system. The system is used to apply mechanical load to bone to facilitate research into Osteoporosis. The following concisely describes the system and the different things

  • PowerPivot Add-In for Excel 2010

    Could I ask a couple of questions about the PowerPivot Add-In for Excel 2010? 1) I couldn't find a way of automatically carrying number formats through from the source tables in Excel, via the tables in the PowerPivot window, to the Pivot Table in Ex

  • Down loaded a new video and it won't load onto the video ipod

    I downloaded an episode of Baby Einsteins for my son to watch on the video ipod. iTunes gives the message "Pirates Treasure" was not copied onto the iPod because it cannot be played on this iPod. What more can I do. I have a new 12" powerbook, the ne

  • Is it possible to load an image from iPhone's photo gallery?

    Is it possible to create a browse event and load a photo from photo gallery on the iPhone?

  • APEX 4: Theme "Simple Red": "No Label" Problem

    Hi, we developed an application in APEX 3 which we currently update and roll out APEX 4. Everything works great so far but we have a problem with the new theme we switched to in the app. We decided to use "Simple Red" in the next version of the appli