Need advise with pdf form generator code?

I hava a PdfFormGenerator.java file that takes a pdf document
loops throught all the fields and creates a class file and converts
the fieldnames into something java can use in a method name,. basically
sets all the set and get method.
I have specified the location of my pdf form and the location of my java code. However when run the PdfFormGenerator.java file in command prompt, I keep getting the following msg:
Exception in thread "main" java.lang.NoClassDefFoundError: com/lowagie/text/pdf/PdfReader
Any ideas how I can get this to work. Thanks
Here is the code:
package project.student;
import java.io.*;
import java.util.*;
import com.lowagie.text.pdf.*;
public class PdfFormGenerator {
    private String className;
    private String formName;
    private StringBuffer generatedClass = new StringBuffer();
        private String classLocation = "D:/Projects/student/code/";
        private String formLocation = "C:/student/admin/forms/";
       public static void main(String[] args){
        try{
            PdfFormGenerator gen = new PdfFormGenerator(args[0], args[1]);
            gen.writeToFiles();
        }catch(Exception ex){
             System.out.println("PdfFormGenerator : " + ex.getMessage());
            ex.printStackTrace();
}Edited by: zub786 on Jan 22, 2008 4:34 AM

You have to include the jar file containing the Iowagie classes in your classpath.

Similar Messages

  • Error while executing WDA with PDf form

    Hi,
    when i'm executing WDA with PDF form i'm getting the following error message.
    i've checked for Reader credential properties from Basis, they say evething is okay.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/56/f2c94a069f44a785b85748e11f82a0/content.htm
    what must be theproblem.
    Also when i execute other WDA application with PDF it is generating PDF .
    pls help.
    Error when processing your request
    What has happened?
    The URL http://dv1d11.corp.abc.pvt:8011/sap/bc/webdynpro/sap/zktest_pdf_try3/ was not called due to an error.
    Note
    The following error text was processed in the system D11 : WebDynpro Exception: ADS: com.adobe.ProcessingException: Could not retrieve a password for credential: ReaderRights(200,101).
    The error occurred on the application server dv1d11_D11_11 and in the work process 2 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: RAISE of program CX_WD_GENERAL=================CP
    Method: CREATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: CONV_VIEW_INTO_VE_ADAPTER_TREE of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: SET_CONTENT_BY_WINDOW of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: RENDER_WINDOWS of program CL_WDR_CLIENT_SSR=============CP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system D11 in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server dv1d11_D11_11 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 2 in transaction ST11 on the application server dv1d11_D11_11 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 100 -u: 09039694 -l: E -s: D11 -i: dv1d11_D11_11 -w: 2 -d: 20081007 -t: 162655 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team

    When you tried other WDAs with PDFs, where they interactive PDFs?  The reader rights are only needed for interactive PDFs. 
    >WebDynpro Exception: ADS: com.adobe.ProcessingException: Could not retrieve a password for credential: ReaderRights(200,101).
    That error message would sure to seem to point that the credentials are not accessible to the user that ADS webservice call is being made by.  That would certainly seem to me to point to a configuration problem at the Basis level.

  • How to work with PDF forms filled up by the user?

    I would appreciate any help regrading work with PDF Forms.
    I present a PDF form to users with several fields that they need to fill up.
    My problem is to receive the values of these fields back.
    In PDF forms you can add a "Submit" button that sends the fields to a given servlet.
    That, however, takes me out of my session and out of JSF navigation model.
    I can't find a way to go back.
    The PDF form is shown in an iframe, so Java Script outside of the iframe cannot know about the "Submit" button action.
    Thanks for any help or reference on this subject.

    Hi Sridhar
               Thanks for ur reply. but iam not getting any clear idea on forms.
    just i will tell u , wat i understood,if i am wrong pls correct me. in pe51 we create form layout
    and specify fields in required format, later run the program RPCEDTU0.wat is the program  for indian payroll?
    thanks in advance.

  • Win7 64-bit PDF Preview works- except with PDF Forms?

    I have Win7 64-bit with Adobe Acrobat X Standard installed. I receive PDFs as attachments in Outlook 2010, and for the most part, the PDF preview works fine. Downloaded PDFs that I have in a folder with the Preview Pane work fine as well. However with PDF forms, which have cells that you can manually fill in, i.e. name, hire date, etc. I receive an error "Please wait, If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document." This happens in both Outlook 2010, and the Windows Explorer preview pane panel. The attached website does not fix my issue as the registry key is correct. Any ideas? Thanks! http://www.pretentiousname.com/adobe_pdf_x64_fix/#downl

    Hello NI_LV_82_User,
    The DIAdem PDF output is not compatible with Windows 7 (DIAdem 11.1 was released in July 2009, Windows 7 was made available in October 2009). The DIAdem R&D department is currently working on a fix to add this functionality under Windows 7. We are working to provide a solution as soon as possible and will make the release of the Service Pack known here on the forum as soon as it is available.
    Message Edited by Otmar on 11-30-2009 02:13 PM
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • Modifying Form Generator code groups

    Does anyone know if it is possible to override the code that the forms generator uses for generated code groups (eg CGCD$QRY_SERVER_VER) at one single place instead of overriding the event code segments for every Forms Module in the Design Editor.
    Kind regards Gerrit Bouhuis.

    Hi Mandy,
    I'm not sure what you mean bij 'form generator code groups'. Do you perhaps mean the logic definitions that appear when you add an event to a form? (Module definition -> application logic -> events -> create event)
    Kind regards,
    Ronald

  • How to output PDF file through XI from PDF form generated in SAP

    Hi, All,
    I need to generate and send out PDF file to other system through XI. The PDF file source come from SAP PDF form which type is XSTRING. I see there is a similar thread posted here /message/527877#527877 [original link is broken]
    but it seems does not have good solution there. Can anybody give a hand?
    Useful information will be surely awarded.
    Yang

    Hi,
    Please check the links below to know about conversion agent tool,it is a third party tool which helps to convert the PDF,word doc,HL7 doc......etc into xml format.
    This s/w u have to buy from SAP and do the convertion in the convertion agent tool and deploy it in the xi server.
    Check the links
    http://help.sap.com/saphelp_nw04/helpdata/en/43/6d95e0ac846fcbe10000000a1553f6/CMGetStart.pdf
    http://help.sap.com/saphelp_nw04/helpdata/en/43/4c38c4cf105f85e10000000a1553f6/content.htm
    More on the SAP Conversion Agent by Itemfield
    Integrate SAP Conversion Agent by Itemfield with SAP XI
    Conversion Agent a Free Lunch?
    How to get started using Conversion Agent from Itemfield
    Conversion Agent - Handling EDI termination characters
    https://websmp102.sap-ag.de/~sapdownload/011000358700001090982006E/ConvAgentDocSP16.zip
    https://websmp102.sap-ag.de/~sapdownload/011000358700004921152005E/ConversionAgent.pdf
    Regards,
    Phani

  • Problem with PDF form

    Hi Everyone,
       I am developing one application in which i want to use PDF form functionality. But when i am adding new interactive form child. but at that time this pdf form's xdp file is not generating and therefore whatever changes i made in pdf form by editing it can's save. i got blank pdf form each time i go to edit that form.
    Same thing is properly work in other applications as well as new applications. And it gives such error in one perticular application only.
    I can't understand why this happening. My Developer studio is of full version 2.0.10.
    Anybody has idea about this?
    thanks in advance.
    Bhavik

    Hi Raz,
    It seems that problem exits with firing the plug.
    Just check your implemented functionality is within the context.
    To Navigate form second view to first you need to create on outBund plug on second view and one inbund plug on frist view and then link them with arrow.
    After that create a button on second view and its corresponding(button) action. and then fiir the outbund plug of second view on button Action.
    It will slove your problem,
    Thanks
    Anup

  • Need to extract PDF form answers into an XML file

    Hi Adobe gurus,we have a requirement like this. We have a Time Tracking and Project Monitoring System whose DB is a Oracle 10g R2. We want to automate our ''Meeting Minute'' processing.
    1. The project lead will write minutes into a form PDF. i.e. a PDF where people can type in information into fields and also tick check-boxes etc.  
    2. The PDF will be e-mailed to the project manager.
    3. Project manager will save the PDF in a HDD directory.
    4. Then he will run a program.
    5. Program will pickup all the PDFs in that directory one-by-one.
    6. For each PDF, the program should read the fields and get the values for the form fields and create an .XML file for it.
    7. Now, another program will read the XML files, extract the information and store those in a DB against each project lead.
    I went through the thread PDF to XML conversion, but unfortunately it has no complete solution. This problem is present for lots of people and I would be really grateful if Adobe experts can give a complete solution. In order to make it easy to answer, I have made a small questionnaire below:
    (A.) When creating a PDF form. i.e. a PDF where you can type information to questions and tick checkboxes etc., can you create the PDF with structure. i.e. for example, the field into which a user types project name should be identifiable (as a tag or something like like PROJECT_NAME), when we create an XML out of it later? Is this called creating a tagged PDF?
    (B.) Does this mean that we cannot convert an untagged PDF to XML?
    (C.) In order to convert a PDF to XML do we need a XSD or DTD? I ask this because, I some converters from the web, like this one, asks for the XSD. And this tool which converts a PDF to XML, asks for a rules set before converting the PDF. So is this necessary?? i.e. Do we have to have our own XSD and rules set, or does the PDF->XML utility convert to XML based on predefined ADOBE PDF tags??
    (D.) Do we HAVE TO use the Adobe LiveCycle ES DLLS to do this??? I ask this becuase most of the free PDF-2-XML convertes give wrong results and has no guarantee.
    (E). Can you please elaborate the process of converting PDFs to XML. Please note that we are doing this using a program (i.e. we process a batch of PDFs).
    (F.) If we use ADOBE DLLS then do we have to purchase the Adobe LiveCycle ES product??
    (G.) If we purchase Adobe LC ES then can we use the DLLs in Java, .Net??? Or is it possible to call the Adobe DLLs only using C or C++ (I read about this on the .Net)?
    (H.) Is Adobe LiveCycle ES a separate product from the Adobe SDK and Adobe PDF writer??
    Your advice would be greatly appreicated.
    Thanks in advance.
    Ravi de Silva.

    Thanks, however, I just want the user to be able to hit the Submit by E-mail button, and e-mail the form to the Manager.  I believe, that this is what this button should be able to do, except that it converts the file to .XML format.
    Still looking for help.  thanks

  • Help with pdf forms

    Hello all,
    I need help desperately! Ok. so, I created a for from an existing document (PDF) on a mac computer. I did a test to see what would happen from the receiving end. When I distribute the form, the client receives it and fills in the blanks with type. WHenever they type a multiple line of text, the text becomes jumbled. I am running out of time and need to get this form to my client asap. Has anyone ever experienced this? If so, whast did you do to fix the problem?
    Thanks

    You'll need to go back and set the properties for the fields in question to multi-line. Right click on the field and select properties.

  • Need help with designing form for exports

    Hi
    I am pretty new to designing form in adobe acrobat.
    I have adobe acrobat 9 standard with Adobe liveCycle Designer installed.
    There are couple of things I want to do.
    1.
    I would like to add a box where I can change the number (default is 1), and when I increase it, (for instance to two)
    then
    it will postulate the particular sections twice.
    For instance, I am taking two drugs right now, then I would like to increase the number of drugs to 2, so then for each drug
    I would enter appropriate information such as drug name, drug form, route of drug administration etcs
    I hope this is clear
    2.
    I am trying to export this in xml format so that only the ones where the user fills in in pdf form gets exported to xml format.
    I would like the boxes to have its own tag, for instance the drug name mentioned above can have a tag of <drugname></drugname>
    I know this is possible through changing the box's name in binding tab.
    What I am interested in is to add a tag for the section, like a header.
    For example, if I were to enter two drug information I want the first drug information to be exported to be
    <drug>
    <drugname>blah</drugname><drugform>1</drugform><drugroute>oral</drugroute>
    </drug>
    <drug>
    <drugname>drug2</drugname><drugform>1</drugform>
    <drugroute>ophthalmic</drugroute>
    </drug>
    how would I add <drug> </drug> for each drug?
    also, can I change the order of the tags??
    in the pdf form, if the drugname box is displayed later than drugroute box, then when I export it, it will display as
    <drugroute>oral</drugroute><drugname>blah</drugname>
    but I want to manually set the order of tags when exported.
    Sorry I asked so many questions
    I hope it is clear enough for you to visualize what I am trying to do
    Thank you so much

    1. You can certainly add sections for the number of drugs that the user specifies pr
    ovided that the form is set up the correct way to begin with. The drug information section must be wrapped in a subform (usually Poistioned) and that in turn must be wrapped in a flowed subform. Then the form must be saved as dynamic. If this information is all that is on the form then that shoudl be all you need to do. If th edrug section is in the middle of the form then you need to wrap the other parts of the form in a subform so they can be pushed down when we add the drug subforms. It can get confusing ...seeing the form amnd its structure would help to clarify.
    2. You canbnot change the names of tags on the fly but you can change their values. AS mentioned above, when you wrap the Drug information in a subform that subform name can be used as a tag in the XML. Then you could have a node with the tag (or an attribute) that names the drug in question. Something like this:
    <Drug Section>
         <Drug>
              <DrugName></DrugName>
              <Dossage></Dossage>
              <Supplier></Supplier>
         </Drug Subform>
         <Drug>
              <DrugName></DrugName>
              <Dossage></Dossage>
              <Supplier></Supplier>
         </Drug>
    </Drug Section>
    As mentioned earlier this is always easier to explain when you see it in context of your form.....if you want to send it to me at [email protected] I can get you started at least. Please include a description of your issue in the email
    Paul

  • Help with PDF form download

    Could anyone help please.  I have completed a form and saved it, then I went back into it and made a couple of changes and now I cannot download it as a PDF file.  Here is the error message I keep getting
    There is nothing else open on my mac, so I don't understand it.  Any advice would be greatly appreciated.  Thanks.

    Hi;
    The general things to try are:
    1) Make sure that youdo not have the file open, close any applications that might have had the file open
    2) Make sure you are saving to a location you can "write" to, such as your Desktop (not a read only location)
    3) Try giving the file a new name when saving (you probably need to add ".pdf" or you might end up with a file with no extension and you'd get another error message)
    4) Try restarting the web browser
    5) Try another web browser
    6) If all else fails restart your computer and try again
    Let me know if those do not get you going again.
    Thanks,
    Josh
    PS - I see Genevieve has just responded as well, I am leaving my response up since I mention trying another browser since that just resolved the same issue for another user...
    PSS - We now have the following FAQ for this issue:
    http://forums.adobe.com/docs/DOC-4141

  • Livecycle design 8 with PDF forms

    I need to create a simple PDF form to be hosted in internal web site which can be filled out by the viewer and submitted by email to the designated person with all the info in tact in the same PDF form? The users will only have Adobe Reader. I already have the form in excel 2003 and am running windows XP professionsl 2002.
    Thank you, 

    Reader does not allow a local save of the form and data by default. To be able to add the attachment o an email message a local save must occur. You can Reader Extend your form to allow for this. Open th eform in Acrobat Pro. Under the Advanced menu choose the "Extend Features in Adobe Reader". Follow the wizard and save the result PDF as a different name ....I like to put RE in the name so I know it is Reader Extended. Try the new file.
    paul

  • How to Get XML from the PDF form generated using Designer that is stored in LC

    We have a Requirement of Generating reports on what a PDF form is comprised of? It is easy for us to scan / parse the XML format of the PDF form and get all the relavent Info we need. We are able to see the XML format of the PDF form when we open up the Form in Designer.
    But we are trying to run this report in a Batch Mode for many PDF files. I need to know how to get a XML format of the PDF file that is stored in LC that was developed using Designer. Once we are able to get the XML of the PDF form it is just a scan / parse to get the relavent data.
    Can some one tell me how to get the XML format of a PDF file stored in the LC?

    If I place the PDF form on the LC server - Can you let  me know of the tools you are referring to get XML design from the PDF form?
    Is it through a Process Orchestration I need to run the PDF through to get a XML design out of it?
    I am fine in storing the PDF in the LC server? How will I get the XML design (XML) from this PDF on the server?

  • Need help with codings on generating random words

    hi guys.. i need help with generating random words from a list of array. please help me with the codings.. let me know the other variables that are needed if required as well.. thanks a million..
    private String wordList[] = { "abstraction", "command", "arithmetic", "backslash" };

    Hi,
    You can use the Random class to generate Random number between 0 to the array length and use the generated random number as index in to the Strign array.
    To generate Random number use the following code
    Random r = new Random();
    num = ((r.nextInt() >>> 1) % wordList.length);
    num will have the randomly generated number.

  • Help with ASP form mail code PLEASE

    Hello
    I am SOOooo close to this form mail code working correctly.
    It is correctly sending the forms info to the form owner via
    an email.
    The only problem is it also sends an email as soon as the
    page spawns and before the form is filled out. (with just the
    labels of course)
    Could someone PLEASE take a look and tell me specifically
    what to change? Trying to woo the boss!
    Thank you.
    (I included the code for the form mail only....let me know if
    I need to post the code for the whole ASP doc)

    See: http://developers.sun.com/techtopics/mobility/midp/articles/midp2network/

Maybe you are looking for

  • ADDT Server Behaviors not all available in CS6

    Hello, I used CS3 for years with the ADDT and was very happy with it.  I was given a career change and got away from programming.  I then upgraded to CS6 Master Collection and the ADDT for DW does not install and all the server behaviors I have come

  • Controlling Access to Build In Camera & Microphone

    Is there a way to control which application has access to the build in camera and microphone? Thanks in advance Jim

  • Won't boot from OS X install disc

    I'm trying to put a second installation of OS X onto a second SATA drive in my MP, so I put in my OS X installation disc, double click "Install OS X and bundled software" and then click the button that says "Restart" to begin installation.... but it

  • Wily Introscope Agent

    Guys, I have the following question.  In a system which has CI + 5 applications, should  just I install Wily Introscope on CI or CI and on the 5 applications? or just the CI is enough to cover the performance analysis? Thank you so much Re

  • "Get info" not work

    I recently bought a laptop and installed my Creative Media source for my two Creative MP3 players -- Zen Extra and Muvo. I've installed it before on my old computer and our current computer with no problem. This time, however, when I hit "get info" I