How to Validate PDF documents

Hi,
I need to find the given PDF document has any missing fonts or it is damaged one from my acrobat plugin application.  Which functions should
I need to use to get  this information in Acroabt SDK.  Please help me..
Thanks & Regards,
Rehana

Thanks Irosenth,
that is good idea.  But I am don't have any idea on which plug-in functions (HFT) available and their names from the preflight plugin.  Can you please give some pointers on which functions i need to import to get this functionality in my plugin application.
Thanks & Regards,
Rehana

Similar Messages

  • How to validate PDF document with JAVA

    Hi,
    Is there any way to write JAVA app that will validate PDFs through/with LC API ? I was traying with code:
    ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
    FormsServiceClient formsClient = new FormsServiceClient(myFactory);
    FormsResult renderedForm = renderPDF(formName, xmlData, url, formsClient);        
    RenderOptionsSpec processSpec = new RenderOptionsSpec();
    //processSpec.setValidationReporting(5);
    processSpec.setLocale("pl_PL");
    FormsResult formOut = formsClient.processFormSubmission(renderedForm.getOutputContent(),"CONTENT_TYPE=applicati on/pdf","",processSpec);
    System.out.println(formOut.getValidationErrorsList().toString());
    //Rendering method
    private static FormsResult renderPDF(String formName,String  xmlData, String url, FormsServiceClient formsClient) throws RenderFormException, DSCException, UnsupportedEncodingException {
             PDFFormRenderSpec pdfFormRenderSpec = new PDFFormRenderSpec();
             pdfFormRenderSpec.setCacheEnabled(new Boolean(false));
             pdfFormRenderSpec.setXMLData(true);
             pdfFormRenderSpec.setStandAlone(true);
             pdfFormRenderSpec.setLinearizedPDF(true);
             URLSpec urlSpec = new URLSpec();
             urlSpec.setContentRootURI(url);
             String credentialAlias = CREDENTIAL_ALIAS;
             String credentialPassword = CREDENTIAL_PASSWORD;
             ReaderExtensionSpec reOptions = new ReaderExtensionSpec();
             reOptions.setReCredentialAlias(credentialAlias);
             reOptions.setReCredentialPassword(credentialPassword);
             reOptions.setReExpImp(true);
             reOptions.setReFillIn(true);
             reOptions.setReDigSig(true);
             Document inputData = new Document(xmlData.getBytes("UTF-8"));
             /*return renderedForm = formsClient.renderPDFForm(formName,inputData,pdfFormRenderSpec,urlSpec,null);*/
             return formsClient.renderPDFFormWithUsageRights(formName,inputData,pdfFormRenderSpec,reOptions,u rlSpec);
    but in formOut.getValidationErrorsList() i still get:
    [8/2/10 12:03:46:728 GMT+01:00] 0000002c SystemOut     O --------------------Validation------------
    [8/2/10 12:03:46:728 GMT+01:00] 0000002c SystemOut     O <document state="active" senderVersion="3" persistent="false" senderPersistent="false" passivated="false" senderPassivated="false" deserialized="true" senderHostId="127.0.0.1/172.16.133.24/172.16.134.24" callbackId="0" senderCallbackId="0" callbackRef="null" isLocalizable="false" isTransactionBound="false" defaultDisposalTimeout="600" disposalTimeout="600" maxInlineSize="65536" defaultMaxInlineSize="65536" inlineSize="0" contentType="null" length="-1"><cacheId/><localBackendId/><globalBackendId/><senderLocalBackendId/><senderGl obalBackendId/><inline></inline><senderPullServantJndiName>adobe/idp/DocumentPullServant/a dobews_anathNode01Cell_anathNode02_server1</senderPullServantJndiName><attributes/></docum ent>
    without any errors. I was looking around (google,forum and Adobe Develop Connection) but no luck . Is it posible to make it that way ?
    Ps.
    It's my first post so (if i did something wrong ) be gentle. And ... sorry for my poor english .

    I modified code for rendering form and for validating and I start to get erros on output, but that is not complete list
    <document state="active" senderVersion="3" persistent="false" senderPersistent="false" passivated="false" senderPassivated="false"
    deserialized="true" senderHostId="127.0.0.1/172.16.133.24/172.16.134.24" callbackId="0" senderCallbackId="0" callbackRef="null"
    isLocalizable="false" isTransactionBound="false" defaultDisposalTimeout="600" disposalTimeout="600" maxInlineSize="65536"
    defaultMaxInlineSize="65536" inlineSize="342" contentType="text/xml" length="-1">
    <cacheId/>
    <localBackendId/>
    <globalBackendId/>
    <senderLocalBackendId/>
    <senderGlobalBackendId/>
    <inline>
        <?xml version="1.0" encoding="UTF-8"?>
        <validationErrors>
        <m d="2010-08-04T10:05:48.897+02:00" ref="...
    </inline>
    <senderPullServantJndiName>adobe/idp/DocumentPullServant/adobews_anathNode01Cell_anathNode 02_server1</senderPullServantJndiName>
    <attributes/>
    </document>
    it is cut in place where should be reference to wrong field.
    <inline>
         <?xml version="1.0" encoding="UTF-8"?>
         <validationErrors>
         <m d="2010-08-04T10:05:48.897+02:00" ref="...
    </inline>
    I attach whole class after changes:
    public class AdobeForm {
        private static final String CREDENTIAL_ALIAS  = "READER_EXC_CERT";
        private static final String IIOP = "iiop://localhost:2810";
        private static final String CREDENTIAL_PASSWORD = "pass";
        private static final String AS_USERNAME = "log";
        private static final String AS_PASSWORD = "pass";
        private static final String NO_ERRORS = "";
        public static byte[] renderForm(String formName,String  xmlData, String url){
            byte[] data = null;
            try
                //JBOSS
    /*            Properties connectionProps = new Properties();
                connectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", "jnp://localhost:1099");
                connectionProps.setProperty("DSC_TRANSPORT_PROTOCOL", "EJB");
                connectionProps.setProperty("DSC_SERVER_TYPE", "JBoss");
                connectionProps.setProperty("DSC_CREDENTIAL_USERNAME", "log");
                connectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", "pass");*/
               // dla WebSphere
                Properties connectionProps = new Properties();
                connectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", IIOP);
                connectionProps.setProperty("DSC_TRANSPORT_PROTOCOL","EJB");         
                connectionProps.setProperty("DSC_SERVER_TYPE", "WebSphere");
                connectionProps.setProperty("DSC_CREDENTIAL_USERNAME", AS_USERNAME);
                connectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", AS_PASSWORD);
                ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
                FormsServiceClient formsClient = new FormsServiceClient(myFactory);
                FormsResult renderedForm = renderPDF(formName, xmlData, url, formsClient, false);
                //test(renderedForm);
                Document renderedFormData = renderedForm.getOutputContent();
                InputStream inputStream = renderedFormData.getInputStream();
                // to pewnie trzeba poprawic na przepisywanie duzych danych
                int size = inputStream.available();
                data = new byte[size];
                inputStream.read(data);
                inputStream.close();
            catch (Exception e)
                e.printStackTrace();
            return data;
        public static byte[] validateForm(String formName, String xmlData, String url){
            byte[] data = null;
            try
                //JBOSS
                Properties connectionProps = new Properties();
                connectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", "jnp://localhost:1099");
                connectionProps.setProperty("DSC_TRANSPORT_PROTOCOL", "EJB");
                connectionProps.setProperty("DSC_SERVER_TYPE", "JBoss");
                connectionProps.setProperty("DSC_CREDENTIAL_USERNAME", "administrator");
                connectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", "password");*/
                // dla WebSphere
                Properties connectionProps = new Properties();
                connectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", IIOP);
                connectionProps.setProperty("DSC_TRANSPORT_PROTOCOL","EJB");         
                connectionProps.setProperty("DSC_SERVER_TYPE", "WebSphere");
                connectionProps.setProperty("DSC_CREDENTIAL_USERNAME", AS_USERNAME);
                connectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", AS_PASSWORD);
                ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
                FormsServiceClient formsClient = new FormsServiceClient(myFactory);
                FormsResult renderedForm = renderPDF(formName, xmlData, url, formsClient, true);        
                RenderOptionsSpec processSpec = new RenderOptionsSpec();
                processSpec.setValidationUI(0);
                processSpec.setValidationReporting(10);
                processSpec.setCacheEnabled(true);
                //processSpec.setXMLData(true);
                //processSpec.setDebugEnabled(true);
                /*processSpec.setLocale("pl_PL");
                processSpec.setStandAlone(true);*/
                FormsResult formOut = formsClient.processFormSubmission(renderedForm.getXMLData(),
                        "I=application/pdf&CONTENT_TYPE=application/vnd.adobe.xdp+xml",
                        "",processSpec);
    /*            Document inputData = new Document(xmlData.getBytes("UTF-8"));
                FormsResult formOut = formsClient.processFormSubmission(inputData,
                        "CONTENT_TYPE=application/pdf&CONTENT_TYPE=application/vnd.adobe.xdp+xml&CONTENT_TYPE=tex t/xml",
                        "",processSpec);*/
                test(formOut);
                // to pewnie trzeba poprawic na przepisywanie duzych danych
                InputStream inputStream = formOut.getOutputContent().getInputStream();
                int size = inputStream.available();
                data = new byte[size];
                inputStream.read(data);
                inputStream.close();
                System.out.println("Dane: "+(new String(data)));
                System.out.println("------------------------------------------");
                System.out.println("OutputXML: "+formOut.getOutputXML());
                return NO_ERRORS.getBytes();
            catch (Exception e)
                e.printStackTrace();
            return NO_ERRORS.getBytes();
        private static void test(FormsResult formOut) {
            if(formOut != null)
                System.out.println("------------------------------------------");
                System.out.println("--------------------Validation------------");
                System.out.println(formOut.getValidationErrorsList());
                System.out.println("------------------------------------------");
                System.out.println("------------------------------------------");   
            else
                System.out.println("-------------------FORMOUT NULL-----------------------");   
        @SuppressWarnings("unused")
        private static void showData(String xmlData, String formName, String url) {
            System.out.println("------------------XML------------------------");
            System.out.println("XML: "+xmlData);
            System.out.println("Form: "+formName);
            System.out.println("URL: "+url);
            System.out.println("------------------XML------------------------");
        private static FormsResult renderPDF(String formName,String  xmlData, String url, FormsServiceClient formsClient, boolean renderedForm) throws RenderFormException, DSCException, UnsupportedEncodingException {
             URLSpec urlSpec = new URLSpec();
             urlSpec.setContentRootURI(url);
             PDFFormRenderSpec pdfFormRenderSpec = new PDFFormRenderSpec();
             pdfFormRenderSpec.setCacheEnabled(true);
             pdfFormRenderSpec.setXMLData(true);
    /*       pdfFormRenderSpec.setDebugEnabled(true);
             pdfFormRenderSpec.setLocale("pl_PL");
             //without rights
             if(renderedForm)//see bellow
                 pdfFormRenderSpec.setLinearizedPDF(true); */
             System.out.println("RenderServlet formName "+formName);  
             String credentialAlias = CREDENTIAL_ALIAS;
             String credentialPassword = CREDENTIAL_PASSWORD;
             Document inputData = new Document(xmlData.getBytes("UTF-8"));
             if(renderedForm)
                 return formsClient.renderPDFForm(formName,inputData,pdfFormRenderSpec,urlSpec,null);
             else
                 ReaderExtensionSpec reOptions = new ReaderExtensionSpec();
                 reOptions.setReCredentialAlias(credentialAlias);
                 reOptions.setReCredentialPassword(credentialPassword);
                 reOptions.setReExpImp(true);
                 reOptions.setReFillIn(true);
                 reOptions.setReDigSig(true);
                 pdfFormRenderSpec.setStandAlone(true);
                 return formsClient.renderPDFFormWithUsageRights(formName,inputData,pdfFormRenderSpec,reOptions,u rlSpec);
             //[8/4/10 11:10:55:928 GMT+01:00] 0000002a CommonGibsonU W com.adobe.livecycle.formsservice.logging.FormsLogger logMessage ALC-FRM-001-048: Forms with Rights cannot be linearized.

  • How to link PDF document in Report Layout??

    I need to display the contents of PDF document after the form letter report. I tried OLE object but at the runtime it does not display the content. Does any one knows how to attach PDF document in reports layout?
    Thanks
    Ravindra

    you will have to concatinate your report output with the static PDF document. in reprots 10g you can create a cusotm destination that could implement this functionality.
    out of the box, reports does not provide the ability to add static content in PDF to reports' generated PDF output.
    thanks,
    philipp

  • New document alert: How to get PDF documents into Adobe Reader for iOS

    Opening PDF Files in Reader for iOS (iPhone and iPad) has been very helpful to many users of Adobe Reader for iOS.  However, Apple has drastically changed the user interface in iOS 7, which made the original document obsolete. 
    According to Apple Developer Support's App Store Distribution page, 89% of devices connected to the App Store are using iOS 7 during a 7‑day period ending June 29, 2014.
    Because of the exceptionally high iOS 7 adoption rate, Adobe Reader for iOS version 11.3 now supports iOS 7 only.
    Here are the new How-To documents for iOS 7.
    How to get PDF documents into Adobe Reader for iOS (iPad on iOS 7 version)
    How to get PDF documents into Adobe Reader for iOS (iPhone on iOS 7 version)
    (It had to be split into two separate documents because each contains way too many screenshots.)
    Hope these documents are as helpful as the original one.
    Please let us know if you have any feedback or suggestions on the topics for other help documents/tutorials.

    Dennis (or any Adobe rep),
    Any updates to the OP's question? I'm with a large government agency, and we're moving away from GoodReader for reasons I can't go into here, and the ability to add user-defined bookmarks within the app is a mandatory feature for the document reader we select. I have the latest version of Adobe Reader (11.6.1) installed on my government iPad, and the ability to add user-defined bookmarks still seems to be missing. Does Adobe have any plans to add this feature, or is it already present and I'm simply overlooking it?
    Thanks,
    Cam

  • How to print PDF documents on Unix(Solaris)

    Hi ,
    I wanted to know how to print PDF documents on Unix(Solaris)?
    Is there a document or white paper that i can refer to start printing PDF document.
    What kind of drivers/utilities will be required to achieve the objective?
    Kiran

    Have you tried FOXIT? I think there is a trialversion. I tried Adobereader 2.5 but there is still no option to print.
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • How to pass pdf documents through idocs

    I wanted to know how to pass pdf document along with a transaction code like sales order or travel expense manager with the help of IDOCs.

    Lily,
    I observe that you have declared lv_xml_data as TYPE xstring & string and get_data method probably expects data of xstring type.
    Have a look at the "Extract the Data" section from following [article.|https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d&overridelayout=true]
    Chintan

  • Validate PDF document with JAVA

    good morning,
    I'm a little desperate, I need to know how to validate using java pdf api but not know how. I followed your steps, which very generously put in the post whose title I refer to the subject of this message, and gives me the same error as you. Did you get it working? Could you send me the code? I ask you please
    I have two pdf documents, each with a date field. In one of them in the date field has a malformed date and another date is in correct format. Need to distinguish, using the JAVA API, each other, but do not know how? anyone can help me? thank you very much

    good morning,
    I'm a little desperate, I need to know how to validate using java pdf api but not know how. I followed your steps, which very generously put in the post whose title I refer to the subject of this message, and gives me the same error as you. Did you get it working? Could you send me the code? I ask you please
    I have two pdf documents, each with a date field. In one of them in the date field has a malformed date and another date is in correct format. Need to distinguish, using the JAVA API, each other, but do not know how? anyone can help me? thank you very much

  • How to embed PDF document to a view in WDJ?

    Hi, experts,
    I have a PDF document for helping user to use a software product. I want to embed it to a view through interactiveform in web dynpro for java so that other users may read the PDF document. I don't how to implement it?
    Do you give me some hint?
    Best regards,
    tao

    Hi,
    One quick question, where have you stored the PDF? is it in MIMEs folder ?
    You have 1 of these 2 options to choose:
    1. Get the PDF data in Byte format, fetch the absolute URL and display it in an iFrame UI Element.
    2. Set the property of Adobe Interactive form UI elemets property -
        mode = usePDF Mode (This mode value does not change the original PDF document. The data source and the template for the creation of the PDF document are ignored)
        pdfSource = Path to the context element containing the PDF document.
    -Kunal Kotak

  • How to view PDF documents with my problem

    I have Imac OS and since downloading and installing Adobe Reader this week, I am unable to open PDF documents.  I get a box which states "before
    viewing PDF documents in this browser you must launch Adobe Reader and accept the End User License Agreement, then Quit and relaunch the
    browser".  How do a accept the End User License Agreement?

    Open Reader by itself (look for its icon in the Applications folder, and double click on it), this should show you the EULA.

  • How to view PDF documents because say you must launch adobe reader and accept the end user license

    I have a question about to display the PDF documents, could you tell me how can I display it?, I have this message that say before viewing PDF documents in this browser you must launch Adobe Reader and accept the End User License Agreement, then Quit and relaunch the browser

    I've got the same issue and I want to use Preview to read pdfs on Safari. At some point I had Acrobat Reader installed, but deleted it and everything associated with it. However no matter what, I get: "Before launching pdf documents in this browser you must launch Adobe Reader and accept the end user license agreement, then quit and relaunch the browser."
    This means I am forced to use Reader, when I don't want to. There seems no way to default to Preview to read pdfs on Safari, even after deleting Adobe Reader completely.
    Anyone have a clue how to fix this?

  • How to make PDF documents that open in Adobe reader open in Preview

    How do I make PDF documents that open in Adobe Acrobat open in Preview?

    Hold down the control key and select a file of the given type in the Finder. A contextual menu appears. Release the  control key and hold down the option key. From the contextual menu, select the submenu
              Always Open With
    and then the application you want to open all files of that type.

  • How to save PDF document as DOC ?

    Hello,
    i wold like to know if it's possible to do "Save As" from a PDF document to a DOC file using C# and Acrobat SDK (i have acrobat pro installed),
    and if so, how ?
    Thanks.

    Yes, you can do this using the JSObject bridge.  Details are in the Acrobat SDK

  • How to load PDF documents in Clover ETL

    Hi,
    How to use/crawl PDF or Word documents as data readers and load it to bulk add/replace records to create dashboards with the data from PDF documents.
    Suggest the better approach to go about using PDF documents.
    Thanks,
    Chaitanya

    Take a look at the Integrator Access System (IAS).  https://docs.oracle.com/cd/E40518_01/ias.310/ias_developer/toc.htm#About%20this%20guide .  It can process PDF https://docs.oracle.com/cd/E40518_01/ias.310/ias_developer/toc.htm#Vector%20image%20formats .
    You can ingest IAS into Integrator/CloverETL https://docs.oracle.com/cd/E40518_01/integrator.311/integratoretl_users/toc.htm#Loading%20data%20from%20an%20Integrator%…

  • How to highlight pdf documents in the i pad. Any app?

    How to read and highlight text in pdf documents received in my I Pad.
    Any App.?

    How do you expect us to help you if it's no longer available? Best you can do is make a feature request to Adobe, here:
    Adobe - Feature Request/Bug Report Form

  • How to sort pdf documents by modified date using Javascript action

    Hello,
    I want to use a Javascript action to sort multiple pdf documents in a folder before I run a Javascript action that prints the last page of multiple pdf documents.  I received help from this forum on the last page print script and it works perfectly.  The downside is it prints in default NAME order and I need them to print in accending DATE MODIFIED order.  I'm not sure if the sort function could be incorporated into the print script or if it would be a seperate code/action.
    This is the script to print the last page of several pdf documents:
    this.print
    ({bUI: false,
    nStart:this.numPages-1,
    bSilent: true,
    bShrinkToFit: true});
    I would appreciate help from anyone that is willing to share the code to "sort by DATE MODIFIED".
    Adobe Acrobat 10 Pro
    Windows 7
    Thank you in advance,
    David C.

    I'm not a code writer.  I'm trying to streamline some operations here at work.  The original code assistance was to print the last page of several pdf documents (sometimes as many as 100 to 150 at a time) without having to open each file, scroll to the bottom, Ctrl-P, current page, Print.  Can't express how beneficial it was to get that to work.  I realize I'm looking a gift horse in the mouth, but when it prints out, it would be great to have them print in DATE MODIFIED order since they are kept in processed order rather than alpha order.
    If the two processes are too labor intensive I fully understand and appreciate all the assistance thus far.  I was hoping it would be as simple as the first script coding to do the actual printing.
    Thanks,
    David C.

Maybe you are looking for