Index/catalog & encrypt PDF files

Hi,
I wish to archive thousands of PDF invoices. I can do this quite easily by putting them on a CD or DVD and creating a catalog Index... however I also wish to encrypt each document and password protect it. Again this is easily achieved by creating a batch process to add Security. When I have done this the catalogue index does not work anymore - it doesn't work either when I select "Encrypt all documents except metadata (acrobat 6 and later compatible)".
Does anyone know how to index/catalog & encrypt PDF files?
I use Vista SP1 & Acrobat pro Extended 9.0.0
Thanks.
Elfed.

Right of course, I'm a little tired this morning.
I copied over my new js file(s) to the C:\Program Files\Adobe\Acrobat 8.0\Acrobat\Javascripts folder.
Now that I have done that, I run the following code and get the error shown at the bottom:
 Type AcrobatCAcroAppType;AcrobatCAcroAppType =
Type.GetTypeFromProgID("AcroExch.AVDoc"); 
CAcroAVDoc avDoc = (Acrobat.CAcroAVDoc)Activator.CreateInstance(AcrobatCAcroAppType); 
Type AcrobatPDDocType;AcrobatPDDocType =
Type.GetTypeFromProgID("AcroExch.PDDoc"); 
CAcroPDDoc pdDoc = (Acrobat.CAcroPDDoc)Activator.CreateInstance(AcrobatPDDocType); 
try
 if (avDoc.Open(fileName, "")) //open the PDF
pdDoc = (CAcroPDDoc)avDoc.GetPDDoc(); 
Object jsAcroObj = pdDoc.GetJSObject(); 
Type T = jsAcroObj.GetType(); 
object[] saveAsParam = { "test" };T.InvokeMember(
"TestFunction", BindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Instance, null, jsAcroObj, saveAsParam); 
Console.WriteLine("\tExport complete."); 
if (avDoc.Close(1) != true) avDoc.Close(1);}
else Console.WriteLine("Cannot open: " + fileName);}
catch (Exception ex){
Console.WriteLine(ex);}
Code fails at
T.InvokeMember line with the following error:
System.Runtime.InteropServices.COMException (0x80020006): Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))

Similar Messages

  • Encrypted PDF file open error

    Hi All,
    problem is when i open to outlook to check mail at that time i got mail but attached file is not open which is encrypted file
    so please help how to open attached file following process i do .
    1: convert otf to pdf file
    2: download pdf file into application server
    3:encrypt pdf file with password protect
    4:upload pdf file from application server
    5:send mail
    1. OTR TO PDF
    CALL FUNCTION 'CONVERT_OTF'
       EXPORTING
         format                      = 'PDF'
         max_linewidth               = 132
    *   ARCHIVE_INDEX               = ' '
    *   COPYNUMBER                  = 0
    *   ASCII_BIDI_VIS2LOG          = ' '
    *   PDF_DELETE_OTFTAB           = ' '
       IMPORTING
         bin_filesize                = gv_bin_filesize
    *   BIN_FILE                    =
        TABLES
          otf                         = gt_otf
          lines                       = gt_pdf_tab
       EXCEPTIONS
         err_max_linewidth           = 1
         err_format                  = 2
         err_conv_not_possible       = 3
         err_bad_otf                 = 4
         OTHERS                      = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    then download pdf file into application server using following code
    OPEN DATASET l_file FOR OUTPUT IN BINARY MODE  .
      IF  sy-subrc = 0 .
        LOOP AT gt_pdf_tab.
          TRANSFER gt_pdf_tab TO l_file .
        ENDLOOP.
        CLOSE DATASET l_file  .
      ELSE.
        WRITE : / 'operating system could not open file' .
      ENDIF.
    *Then i use command line mode Encryptpdf, from verypdf.com, *
    so successfuly file encrypted and password protected.*
    Then upload pdf filw which is encrypted form application server
    OPEN DATASET to_file FOR INPUT IN BINARY MODE.
      IF sy-subrc = 0.
        DO .
          READ DATASET to_file INTO gs_objbin. "GS_PDF_TAB.
          IF sy-subrc = 0.
            APPEND gs_objbin TO gt_objbin .  "GS_PDF_TAB TO GT_PDF_TAB.
          ELSE.
            EXIT.
          ENDIF.
        ENDDO.
        CLOSE DATASET to_file.
      ENDIF.
    then i use use FM SO_NEW_DOCUMENT_ATT_SEND_API1
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data                    = gs_docdata
         put_in_outbox                    = 'X'
         commit_work                      = 'X'
    * IMPORTING
    *   SENT_TO_ALL                      =
    *   NEW_OBJECT_ID                    =
        TABLES
          packing_list                     = gt_objpack
    *   OBJECT_HEADER                    =  I_OBJTXT
         contents_bin                     = gt_objbin
         contents_txt                     = i_objtxt
    *   CONTENTS_HEX                     =
    *   OBJECT_PARA                      =
    *   OBJECT_PARB                      =
          receivers                        = gt_reclist
       EXCEPTIONS
         too_many_receivers               = 1
         document_not_sent                = 2
         document_type_not_exist          = 3
         operation_no_authorization       = 4
         parameter_error                  = 5
         x_error                          = 6
         enqueue_error                    = 7
         OTHERS                           = 8
    Edited by: Krupaji on Oct 27, 2010 11:31 AM

    Related FM SO_NEW_DOCUMENT_ATT_SEND_API1 you can check following example:
    clear : gs_docdata,gt_objbin. "
        refresh : gt_objbin . "
    *   gs_docdata-obj_name = 'ord_accept'.
        gs_docdata-obj_name = 'Invoice'.
        gs_docdata-expiry_dat = sy-datum + 10.
    *   gs_docdata-obj_descr = 'Your Invoice No : '.
        gs_docdata-obj_descr = detail1.
        gs_docdata-sensitivty = 'F'. "Functional object
        gs_docdata-doc_size = gv_desc_lines * 255.
        clear gs_objpack-transf_bin.
    * Start line of object header in transport packet
    *    GS_OBJPACK-TRANSF_BIN = 'X'.
        gs_objpack-doc_size = gv_desc_lines * 255.
        gs_objpack-head_start = 1.
        gs_objpack-head_num = 0.
        gs_objpack-body_start = 1.
        gs_objpack-body_num = gv_desc_lines.
        gs_objpack-doc_type = 'RAW'.
    *    GS_OBJPACK-OBJ_NAME = 'ORDER_ACCEPTANCE'.
    *    GS_OBJPACK-OBJ_DESCR = 'ORDER_ACCEPTANCE.PDF'.
        append gs_objpack to gt_objpack.
      endif.
    *• Passing the SAP Script text lines to SAPoffice: Single List with Column Length 255 table
      clear : gs_objbin, gs_pdf_tab.
    *&      Encrypted file
      filename = name.
      if name is initial.
        concatenate   'd:\pdf\' main_dtl-vbeln '.PDF' into name.
      filename = name.
    endif.
    data: pdf type ref to cl_hrasr00_pdf_generation.
      data : lt_data            type solix_tab.
      open dataset filename for input in binary mode.
      if sy-subrc eq 0.
        read dataset filename into filex.
      endif.
      if filex is not initial.
        call function 'SCMS_XSTRING_TO_BINARY'
          exporting
            buffer        = filex
          importing
            output_length = file_length
          tables
            binary_tab    = gt_objbin.
      endif.
      close dataset filename.
    describe table gt_objbin lines gv_tab_lines.
      clear gs_objbin.
      read table gt_objbin into gs_objbin index gv_tab_lines.
      if sy-subrc = 0.
        gs_objpack-doc_size = ( gv_tab_lines - 1 ) * 255 + strlen( gs_objbin ).
        gs_objpack-transf_bin = 'X'.
        gs_objpack-head_start = 1.
        gs_objpack-head_num = 0.
        gs_objpack-body_start = 1.
        gs_objpack-body_num = gv_tab_lines.
        gs_objpack-doc_type = 'PDF'.
        gs_objpack-obj_name = 'INVOICE'.
        gs_objpack-obj_descr = 'Invoice Order'.
        append gs_objpack to gt_objpack.
      endif.
    call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        exporting
          document_data                    = gs_docdata
         put_in_outbox                    = 'X'
         commit_work                      = 'X'
    * IMPORTING
    *   SENT_TO_ALL                      =
    *   NEW_OBJECT_ID                    =
        tables
          packing_list                     = gt_objpack
    *   OBJECT_HEADER                    =  I_OBJTXT
         contents_bin                     = gt_objbin
         contents_txt                     = i_objtxt
    *   CONTENTS_HEX                     =
    *   OBJECT_PARA                      =
    *   OBJECT_PARB                      =
          receivers                        = gt_reclist
       exceptions
         too_many_receivers               = 1
         document_not_sent                = 2
         document_type_not_exist          = 3
         operation_no_authorization       = 4
         parameter_error                  = 5
         x_error                          = 6
         enqueue_error                    = 7
         others                           = 8
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      else.
        open dataset name for input in binary mode.
        if sy-subrc eq 0.
          delete dataset filename.
        endif.

  • How catalog a pdf file with a batfile (.bat)

    Is there a command to catalog a pdf file with the execution of a batfile (.bat) ??
    Here is an example of what I want to do ::
    echo off
    cls
    c:
    cd\RepertoireAA
    If exist test.pdf del test.pdf
    If exist test.log del test.log
    If exist Ind_test.pdx del Ind_test.pdx
    copy c:test.pdf c:\RepertoireAA\test.pdf
    ================================
    Where is Adobe Acrobat
    ================================
    c:
    cd\program files
    cd Adobe
    cd Acrobat 6.0
    cd acrobat
    ==================================================================
    Start Acrobat with some commands... if possible
    ==================================================================
    Acrobat (... commands) ????????????????????????????
    =====================
    Commands to do
    =====================
    Indexer(catalog) c:\RepertoireAA\test.pdf
    Index Ind_Test created under c:\RepertoireAA\Ind_Test

    The Acrobat SDK has details of how to automate Acrobat, including the
    Catalog plug-in. Command lines do not figure, but things like OLE and
    DDE abound. See in particvular the Interapplication Communication
    Reference > Acrobat Catalog Plug-in.
    Aandi Inston

  • How to change the font and size in the fillable field of an encrypted PDF file?

    hi!
    I’d like to change the font and size in the fillable field of an encrypted PDF file I-485 from www.uscis.gov/files/form/i-485.pdf
    I’m using Adobe Acrobat Pro 9 in Windows XP. I firstly tried Adobe LiveCycle Designer, but the I-485 file requires password to be opened, which I don’t know.
    Then I tried to print it to a PDF file, and use the Typewriter tool to fill in the form. But got error message while printing it to PDF file:
    This PostScript file was created from an encrypted PDF file.
    Redistilling encrypted PDF is not permitted.
    The I-485 file can be exported to unencrypted postscript file, but got the same error message while trying to open the ps file.
    I don’t know much about pdf file, can anyone please help?
    Thanks a lot!

    Ask the creator of the file for a unprotected version.

  • I want to import a MS Word Index into a .pdf file using Adobe Pro.  How do I do that?

    I want to import a MS Word Index into a .pdf file using Adobe Pro. It is for a book.  The book has been converted to a .pdf for printing, but it needs an Index for the last page of the book.  I tried to embed a new index (starting from scratch but no luck.  Any suggestions?  Thank you for your time.

    Now I want to search this "myArrayStrings.get(r)" in another file. How to do that?Store the returned String. Do the same thing you did to read the first file to read the second file (i.e. read it in line-by-line and store the lines in a list). Then check if that list contains the String you stored from the first list.
    E.g. (using your code):
    String name = myArrayStrings.get(r); // assuming r is initialized somewhere before this
    if ( otherList.contains( name ) ) { // assuming otherList is your second list
        // do something
    }

  • This PostScript file was created from an encrypted PDF file.

    I have a postscript file which has been created from secure or encrypted (opening restriction) pdf.
    Now when i use distiller to convert this postscript file to pdf then distiller cannot produce a pdf file.
    The log file contains following text:
    This PostScript file was created from an encrypted PDF file.
    Redistilling encrypted PDF is not permitted.
    %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
    %%[ Warning: PostScript error. No PDF file produced. ] %%
    1) Is there a way to convert this postscript file into pdf ?
    I have a limitation that i cannot remove security from secure pdf.
    2) Do distiller provide any settings which can be changed to convert
    this kind of ps(from secure pdf) to pdf.
    3) Can we provide password to distiller during process of conversion to
    pdf.
    4) If above methods do not work then is there a way we can
    programatically use Distiller Api's for conversion of postscript (in case
    of postscript created from secure pdf) to pdf
    Like methods 'FileToPdf' etc.
    Thanks in advance.

    I am facing a similar problem.
    My workflow dictates that I convert the input PDF job initially to PS and finally back to PDF. If the input PDF file is secure (it's not encrypted - you will still be able to open the document), the redistillation of PS to PDF fails while using Normalizer 6.0 && 9.0 libraries. If I use Normalizer 505 library, the redistillation succeeds. I have checked with the same generated PS on both Distiller 6.0 && 9.0, and both the versions fail to reconvert as well. I am a little surprised that 6.0 and 9.0 will fail to do something that 505 library manages.
    Any suggestions?

  • Encrypted pdf file

    Hi,
    I received pdf file to my email, when i open it on my iphone the pages were blanks (White) i ask the sender to resend me the file as I thought there is some error sending it, but again the same, when i went home i open the file on mac and it is asked me for a password, then it is open and both files were fine,
    So please any one know how to open encrypted pdf file on iPhone ????

    Apparently you cannot. Sorry.

  • Batch encrypt pdf files

    Hello All,
    I am new here and not sure where to file this. I cannot find a category for automator
    My question is, are you able to make the encrypt pdf files action under automator work? I tried to create a workflow to do the following :
    1. Select finder items
    2. Encrypt pdf files
    After running this workflow, nothing happens to my pdf files. Can you please advise how to make this work?
    Thanks!

    help?

  • How secure is an encrypted pdf file?

    I am using Acrobat XI Pro => Require a password to open document => use a password that is 'Best' with the 4 gray rectangles on the right lighting up green => Compatibility: Acrobat X and later, Encryption Level: 256-AES
    In other words, the above is the strongest security that Acrobat XI Pro has to offer by way of encryption. But just how secure is this strongest security? Any of the experts here care to give a lay person a feel for the level of security in case the encrypted pdf file gets in the wrong hands?

    It would be very hard (take a very long average amount of time) to crack the security with that password and encryption level, but both the "document open" and "change security" passwords should have the same high level of strength since both can be used to open the document. Be sure to use passwords that aren't susceptible to dictionary attacks.
    Check out this site: https://www.grc.com/haystack.htm
    but read the background information so you know what it's showing.

  • IFilter 9 - 64 bit is not indexing encrypted PDF files content

    Is this a limitation of IFilter9?

    Erwin,
    I was not able to systematically examine this issue, because it occurred on a production system and, of course, I uninstalled the Adobe iFilters as soon as I read that they may delete pdf files. Before the uninstallation I noticed the AR9 folders appearing on c:\ and moved them from time to time to another folder. Using the search function inside this folder, I found that all files were present in duplicate at least. I concluded, that after moving the AR9 folders they were recreated containing the same files. Consequently, these files cannot have been deleted. Searching for the origin of these files I found that they were part of pdf portfolios, therefore my conclusion that they are part of the indexing mechanism of the portfolios. What I have not done (and what I am not going to do since it is a production system) is to fill a folder with pdfs and track what is happening to the files.
    In case of my server, I think that the iFilters did not delete any files. Of course I cannot say what happens on other systems. I am definitely not going to reinstall the iFilters before knowing what they a really doing to the files.
    Not sure if this is of much help
    Michael

  • Need To Open An Encrypted PDF File That I Created.  No Password.

    I have Acrobat 8.  I created a document and then tried to put security on it.  Now I cannot even open the document.  It gives me the message:  "You do not have access rights to the encrypted document."  I never entered a password or anything.  I need to get this document reopened.  Also, I pasted some JPEG signatures into the document.  My reason for security measures was to make sure nobody could edit the document and right click and save as the signature JPEG.  First thing first- getting the document opened.  Then let me know how to just make it so that someone can only read and print the document and not be able to edit any typewriter insertions.  PLEASE HELP!!!!

    Hi Dom,
    Let's start with Certificate Security is not the same as Password Security. If you had encrypted the PDF file using Password Security, then whatever password you used to lock the document you would use to unlock the document. It's pretty straight forward, and in the cryptography world it would be know as symmetrical security in that you use the same key (password) to lock and unlock the file. Think of it as using a key to lock your front door to your house when you leave and the exact same key to unlock the door when you return, that's what symmetrical security is.
    Certificate security is a totally different beast. Certificate Security uses asymmetrical encryption meaning there are two different keys involved, a public key and its corresponding private key. When these keys are generated there is a voodoo that goes on that gives these two keys a symbiotic relationship in that (and this is the basic tenet of asymmetrical encryption) what one key locks only its corresponding other key can unlock. Either key can lock (really encrypt) something and only its corresponding other key can unlock (decrypt) it once it's been locked. Of these two seemingly magical keys one is designated as a private key that only the key owner has access to, and the other is designated as a public key that the whole world has access to. If you lock something with your private key then only its corresponding public key can unlock it, and yes that means that not even the private key can unlock it. You can also lock something using the public key in which case only the corresponding private key can successfully unlock it.
    When you encrypt (think of that as "lock") a PDF file using Certificate Security you are encrypting the file using one or more public keys. That is, you encrypt the file for a list of recipients where each recipient has provided you with their public key and they in turn will decrypt the document using their private key. The number of recipients is theoretically limitless, but practically there is a limit in that each recipient you include will cause the file size to grow a little and at some point you'd make the file size too large for the computer to handle, but for the sake of our discussion think unlimited number of recipients. When you encrypted the file you were asked to select a recipient. If you don't also select yourself as a recipient then you end up locking yourself out of the file, and that's exactly what happened in your case. I see from above that you are using version 8, but I believe it was version 9 where we added the warning to make sure to add yourself as a recipient so as to not lock yourself out of the file (I can't remember if it was version 8 or 9, but since you didn't mention that warning I'll assume that we didn't add the warning until 9).
    Unless you added yourself at the time you encrypted the file there is no going back to add yourself later because if you can't open the file you can't edit the file. You are locked out forever. You could ask the person that you included as a recipient to see if they can open the file and remove security, but you would have had to make them a document owner when you encrypted the file. If you restricted their editing capabilities then they won't be able to remove security, but at least you could see the contents of the file.
    I know this has all been a bit geeky, and I haven't gone into how to procure a public/private key pair, but I don't want to dump too much data on you in one post. If you need more information let me know and I'll be glad to provide it.
    Steve

  • TREX indexing problem with PDF files

    Hi all,
    I use KM to access DMS with the "DMS Connector for KM".
    I create an index on my DMS repository.
    I have more then 8000 documents. Most of then are PDF files.
    Only word document are indexed.
    i have read and put in place OSS Note 1008299 and 1031193.
    I have error message in trc file TrexPreprocessor :
    [4648] 2009-08-27 17:12:21.969 e preprocessor Preprocessor.cpp(00963) : HTTPGET failed for URL http://rixsapfps.sbbio.be:52400/irj/go/km/docs/DS/EDIPUBLICROOTFOLDER%23ZFL%23000%2300/DMS_030%23ZFL%23000%2300/DMS_030_SOP%23ZFL%23000%2300/DMS_030_SOP_50%23ZFL%23000%2300/0000000000000009000005363%23SOP%23000%230249871722A5F41746E1000000C14A8425.pdf with Httpstatus 500
    [4648] 2009-08-27 17:12:21.969 e preprocessor Preprocessor.cpp(03553) : HANDLE: DISPATCH - Processing Document with key '/DS/EDIPUBLICROOTFOLDER#ZFL#000#00/DMS_030#ZFL#000#00/DMS_030_SOP#ZFL#000#00/DMS_030_SOP_50#ZFL#000#00/0000000000000009000005363#SOP#000#0249871722A5F41746E1000000C14A8425.pdf' failed, returning PREPROCESSOR_ACTIVITY_ERROR (Code 6500)
    Any help is welcome.
    Pascal

    Dear
    Please refer
    https://forums.sdn.sap.com/thread.jspa?threadID=1058626
    https://forums.sdn.sap.com/thread.jspa?threadID=403393&messageID=3429730#3429730
    Regards,
    Tushar

  • Can I open an encrypted pdf file from Dropbox with my iPhone, iPad, or iPad Mini?

    Mac OS 10.9.3 encrypts a pdf file using Acrobat XI, then sends it to Dropbox.  Mobile device retrieves encrypted file from Dropbox.  Then can mobile device user open (unencrypt) the pdf file?

    George, you wrote something that encouraged me to try to encrypt a PDF document again using the security icon on the menu bar of my old Acrobat 8 Professional. It worked this time (it wouldn't encrypt on my first try, and I wrongly assumed that it wasn't compatible with Maverick OS).  I dropped document into Dropbox, retrieved it with mobile devices; and when I tapped on the document, it simply asked for the password and opened perfectly. When moving to a different screen, then back to the secured PDF file, one must re-enter the password again (which is good).
    As far as what PDF viewer -- I don't know.  I have the Acrobat Reader APP on my devices, is that the reader the document is using??  I've never figured out which APPs are running at any particular time on these devices.
    Many, many thanks for your reply!!

  • Indexing and Searching PDF Files

    Hi All,
    I am trying to store and search PDF files in the oracle database.
    I can insert and index the PDF files just fine but cannot get any result. I always get No Rows.
    Here's what I am doing and the issues I am facing.
    I created a Table with fields
    ID (VARCHAR)
    NAME (VARCHAR)
    DOC (BLOB)
    I inserted the PDF file in the BLOB field through a Java program and insert worked fine as I verified by retreiving the PDF and writing to file.
    I created index using following SQL:
    create index my_index on PDF_TABLE(PDF_FLD) indextype is ctxsys.context
    parameters ('datastore ctxsys.default_datastore
    filter ctxsys.inso_filter');
    The index was created successfully without any problems.
    I ran query as follows and got no rows although the searched text is in PDF
    SELECT SCORE(1), PDF_FLD from PDF_TABLE WHERE CONTAINS (PDF_FLD, 'Table of Cotents',
    1) > 0;
    I tried alternate queries as well with no luck.
    Any ideas ??
    Thanks

    After creation the index you need execute next operations.
    first, check that your index tables conatins indexed terms. Execute
    select token_text from dr$YOUR_INDEX$i;
    Second, you will need to check the index errors table CTX_INDEX_ERRORS. This is owned by the user CTXSYS, and most users do NOT have # SELECT privilege to it by default.
    If it's OK, then check that your PDF documents is supported by INSO filter.
    Citation:
    "PDF - Portable Document Format
    Acrobat Versions 2.1, 3.0, 4.0, and 5.0 including Japanese PDF"
    (Appendix B. Supported Document Formats in Oracle Text Reference 9.2)
    For Oracle 9i you could install 9.2.0.4 patchset (it included INSO FILTER 7.5)
    P.S.
    for the beginning, you could find answers for your question about Oracle Text here
    http://otn.oracle.com/products/text
    Sorry for my English.
    Best regards, Victor Zogin.

  • Issue in encrypted PDF file

    I had encrypted one PDF file using VC++ component.
    But when i open the encrypted file in Adobe Professional it asks for saving the file.
    Password for encrypted file is : "a"
    1) File which is encrypted(Original File)
    http://www.2shared.com/file/4686154/673db65f/blank.html
    2) Encrypted File Using VC++ component
    http://www.2shared.com/file/4686152/8e5e136a/Unsaved_Encr.html
    if opened in adobe professional it asks to save, when we try to close the PDF.
    3) Following link is for file which i had opened in Adobe Professional, and choose to save when it asks for saving.
    http://www.2shared.com/file/4686153/f95923fc/Saved_Encr.html
    Can anyone please help me, why the encrypted file asks to save, when opened in Adobe professional.
    Also when i choose to save the file after opening it in Adobe professional, why it changes whole structure of my encrypted file.
    Thanks.

    Thanks Leonard,
    Is it possible for you to tell me why PDF is invalid or broken.
    OR what wrong thing done by me that broken the PDF.
    Thanks Again.

Maybe you are looking for