Problem while compressing a PDF

Hi,
I am facing a problem while compressing a PDF. The requirement is to merge lot of PDF into one. But when we merge the file the size of the PDF becomes huge. It can not be sent as an attachment in an email. We also don't want to ZIP the file. Any help is welcome.
Thanks,

Thanks a lot Satyajit,
I have already gone through the post. I can not change the existing forms. I can compress one form to the least I can but when I merge 500 of such forms then the size becomes huge. I need to compress the "merged" big file, not the single form. My individual forms are already very small in size.
Regards

Similar Messages

  • Problem while generating hindi pdfs

    Hi,
    This is Dasaradh. I have one problem while generating pdfs in HIndi. Here i have used two properties files, one is English and another one is Hindhi. If the user selects English PDF is generates Suceesfully. But if the user selects hindhi then pdf is generated but in that pdf all the charcaters are in diferent format but not in hindi.Actually my hindhi properties file and that pdfgerneration jsp both are in UTF-8 format. Here i have used PDFWriter class for generating pdfs.
    Can any one pls help for generating the hindhi pdfs.
    Thanking You,
    Dasaradh.P

    Make sure that you use the correct and the same encoding thoroughout the complete process.
    1) Save the propertiesfile with in that encoding. Even the most simplest texteditor (notepad) offers you an option list of charset encodings to be used during 'Save As'.
    2) Read values from the propertiesfile with that encoding. Use a Reader where you specify the encoding in the constructor. Otherwise either the platform's default encoding (e.g. CP1252 in Windows) or the API's default encoding (e.g. ISO 8859-1 in java.util.Properties) will be used.
    3) Display the values with that encoding. Specify the charset encoding in a <meta> tag in the HTML head.
    A must-read: [http://www.joelonsoftware.com/articles/Unicode.html].

  • Problem while opening the PDF

    Hi All,
    Iam having an issue while opening the PDF-Attachment in which iam sending it as attachment to the mail.While opening the PDF iam getting the error that "Aodbe Reader could not open the document 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 was'nt correctly decoded)".
    The function-module "SO_NEW_DOCUMENT_ATT_SEND_API1" is getting use to send the attachment.
    First iam converting the internal table data into PDF and then am sending the mail with PDF-attchment.
    Thanks,
    Asmitha.

    Even i had a smilar problem. The reason is perhaps the data in internal table doesnt get converted into PDF corectly. In my case i had to convert into PDF and download on local machine. Attching below code for it.Maybe u can get pointers to your problem.
      REPORT sy-repid
           NO STANDARD PAGE HEADING
           LINE-COUNT 74
           LINE-SIZE  200
           MESSAGE-ID zz.
      PARAMETERS : pcfile LIKE rlgrap-filename LOWER CASE.
      DATA :textlines LIKE tline OCCURS 100 WITH HEADER LINE.
      DATA otf LIKE itcoo OCCURS 1000 WITH HEADER LINE.
      DATA it_lines LIKE tline OCCURS 100 WITH HEADER LINE.
      DATA options LIKE itcpo.
      DATA header LIKE thead.
      DATA result LIKE itcpp.
      DATA: bin_filesize TYPE i.
      DATA: filesize TYPE i,
      convcount TYPE i,
      cancel(1).
      AT SELECTION-SCREEN ON VALUE-REQUEST FOR pcfile.
        CALL FUNCTION 'WS_FILENAME_GET'
          EXPORTING
            mask     = ',*.*,*.*.'
          IMPORTING
            filename = pcfile
          EXCEPTIONS
            OTHERS   = 1.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      START-OF-SELECTION.
        DATA : BEGIN OF itab OCCURS 0,
                matnr TYPE mara-matnr,
                END OF itab.
        SELECT matnr FROM mara UP TO 10 ROWS INTO TABLE itab.
        LOOP AT itab.
          textlines-tdformat = '*'.
          textlines-tdline = itab-matnr.       APPEND textlines.
        ENDLOOP.
        options-tdgetotf = 'X'.
        options-tdnoprev = 'X'.
        CALL FUNCTION 'PRINT_TEXT'
          EXPORTING
            dialog                   = ' '
            header                   = header
            OPTIONS                  = options
          IMPORTING
            RESULT                   = RESULT
          tables
            lines                    = textlines
            otfdata                  = otf
          EXCEPTIONS
            canceled                 = 1
            device                   = 2
            form                     = 3
            OPTIONS                  = 4
            unclosed                 = 5
            unknown                  = 6
            format                   = 7
            textformat               = 8
            communication            = 9
            bad_pageformat_for_print = 10
            OTHERS                   = 11.
        IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        CALL FUNCTION 'CONVERT_OTF'
          EXPORTING
            format                = 'PDF'
          IMPORTING
            bin_filesize          = filesize
          TABLES
            otf                   = otf
            lines                 = it_lines
          EXCEPTIONS
            err_conv_not_possible = 1
            err_bad_otf           = 2.
        DATA : g_file TYPE string.
        g_file = pcfile.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            bin_filesize            = bin_filesize
            filename                = g_file
            filetype                = 'BIN'
          TABLES
            data_tab                = it_lines
          EXCEPTIONS
            file_write_error        = 1
            no_batch                = 2
            gui_refuse_filetransfer = 3
            invalid_type            = 4
            no_authority            = 5
            unknown_error           = 6.
    Regards,
    Mansi

  • Problem while exporting to PDF with japanese character in Crystal Report X1

    Hi,
    I am using Crystal report X1 with classic ASP on a Windows 2003 Enterprise Server, SP 2. In my application, I have to export the report into PDF, CSV, DOC formats. I am have Japanese strings in the report. While exporting to PDF, empty boxes has displayed in the place of Japanese string and in CSV file, question mark has been displayed instead of Japanese string. But the Doc file is exported correctly. I have not installed any language support software either in server or in client machine. I have used MS Gothic and Arial Unicode MS fonts for the text-objects which has Japanese strings.
    Please give me a solution so that I will get PDF file with Japanese strings instead of empty box or question mark.
    Do I need to install any language support pack software?
    Thanks in advance.
    Regards,
    Manju

    Hi Don,
    Thank You for your reply. I have resolved the issue of exporting to pdf from crystal report X1 having Japanese data after installing the language pack.
    But when I am exporting to CSV or TXT, i am getting ??? instead of Japanese characters. I have tried "export" through crystal report designer and got ??? instead of Japanese.
    The Crystal report version I am using is Crystal report X1  11.0.0.1282
    Crystal Report Desinger is installed in Windows Xp machine
    Font set for Text object is Arial Unicode MS, MS PMincho, MS PGothic
    Does the Crystal report X1 11.0.0.1282 has the UTF-8 support for CVS / txt
    Please provide me a solution
    Thanks in advance,
    Regards,
    Manju

  • Problem while opening a pdf file

    Hi,
    when i try to open a certain pdf file directly by clicking on the link, the reader hangs up.
    when i start the reader and try to open the file directly after that, the reader hangs up.
    But when i open the reader, let it run for a minute or two and open the file then, then it works fine.
    Anyone got an idea what the problem is?
    Regards
    a.dura

    Hi,
    when i try to open a certain pdf file directly by clicking on the link, the reader hangs up.
    when i start the reader and try to open the file directly after that, the reader hangs up.
    But when i open the reader, let it run for a minute or two and open the file then, then it works fine.
    Anyone got an idea what the problem is?
    Regards
    a.dura

  • Problem while exporting to PDF in the viewer

    I have a report developed in crystal report 2008.and i am using java SDK  to launch it in crystal report viewer.
    Once i try to export it to PDF from viewer the font face changes differently
    for example if my font is Arial Narrow it changes to ArialNarrow and Times New Roman changes to TimesNewRoman
    even though both looks of same name..it looks differently while downloaded.

    Moved to the Java Development - Crystal Reports forum.
    Ludek

  • Problem while Converting from PDf To XML

    hi everybody ,
                             By using interactive adobe forms i have
    done an application which has four text fields binded with data
    using Data Source property of interactive form through webdynpro.
    Now when iam trying to get the XML format of this PDF form
    located at server , i am getting a Exception as follows
    javax.xml.transform.TransformerException: Namespace fixup failed. Prefix 'xfa' used in attribute 'xfa:dataNode' is not declared anywhere
    can any one help me..if any queries please ask
    thanks
    Madhavi

    I had a similar problem and it was solved with
    factory.setNamespaceAware(true);

  • Problem while generating Encrypted PDF in batch

    Hi PPl
    I am generating encrypted PDF in batch. I have one requirement to generate about 1 lakh PDFs.
    But when i start my batch initially it works fine but after generating round about 25 PDF my program get
    stuck at Document.copyToFile method and after that it again generates around 5-6 PDF and stops for a while
    at the same place.
    I have tried the same program to generate PDF without Encryption and it works very fine.
    Guys i need your help to solve this issue.
    Waiting for your valuable inputs.
    Thanks

    Moved to the Java Development - Crystal Reports forum.
    Ludek

  • Polish language problem while displaying in PDF

    Hi
    I have generated an OTF Spool in my system using Smartform in Polish Language.
    The spool is good.
    However when i try to convert the spool  to PDF using RSTXPDFT4 , i get certain unrecognisable characters such as " ] " 
    can any one tell what reason  would be for this as the spool is good but on conversion to PDF it goes like this.
    Thanks
    Ram

    Hi,
    Check this sap Note 999712. This might help you.

  • Problem while opening the PDF File in Enterprise Protal

    Dear All,
    I have uploaded a PDF Document of around 30 pages in KM and made an iview to view that document but when i click on the iview the document is not opening properly and after sometime the Portal/system is getting hanged.But when i open the pdf document with less number of pages it is working fine.
    I am using EP 7.0  and Adobe Reader 8.1.
    Any help or suggestions will be highly appreciated.
    Regards
    Shareef

    Doesnt seem to appear as a portal issue neither it is a reader issue. Might be some issues with the network which isnt allowing the entire file to get downloaded and hence causing the browser to hang.
    Thanks,
    GLM

  • Problem with compressing unicode file names in zip file

    Hi Everyone,
    I have a problem while compressing the unicode file name in a zip file. I used the below code for compressing the unicode files.
    String[] source = null;
    // C:\\TestData\\unicode_filename.txt :  unicode_filename.txt is the file created in japanesse language
    source = new String[] {"C:\\TestData\\temp_properties.xml","C:\\TestData\\unicode_filename.txt" };
    byte[] buf = new byte[1024];
    // Create the ZIP file
    String target = "C:\\TestData\\target.zip";
    ZipOutputStream out = new ZipOutputStream(new FileOutputStream(target));
    // Compress the files
    for (int i = 0; i < source.length; i++)
         FileInputStream in = new FileInputStream(source);
         // Add ZIP entry to output stream.
         String fileName;
         File tempFile;
         ZipEntry zipEntry = new ZipEntry(source[i]);
         fileName = zipEntry.getName();
    zipEntry = new ZipEntry(fileName);
    zipEntry.setMethod(ZipEntry.DEFLATED);
    getUTF8Bytes(source[i]);
    // here I'm unable to find the unicode files and not able to understand.
    out.putNextEntry(zipEntry);
    // Transfer bytes from the file to the ZIP file
    int len;
    while ((len = in.read(buf)) > 0) {
    out.write(buf, 0, len);
    // Complete the entry
    out.closeEntry();
    in.close();
    // Complete the ZIP file
    out.close();Please help me how to fix this issue.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    Thanks for your time for looking into my query.
    Please check the below code for debugging the issue and throw your comments/suggestions for fixing the issue.
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    public class ZipTest
      public static void main(String[] args) {
              String[] source = new String[] {"C:\\TestData\\APP_Properties.xml","C:\\TestData\\??.txt" };
              byte[] buf = new byte[1024];
              try {
                   // Create the ZIP file
                   String target = "C:\\TestData\\target.zip";
                   ZipOutputStream out = new ZipOutputStream(new FileOutputStream(target));
                   // Compress the files
                   for (int i = 0; i < source.length; i++) {
                        FileInputStream in = new FileInputStream(source);
                        // Add ZIP entry to output stream.
                        String fileName;
                        File tempFile;
                        ZipEntry zipEntry = new ZipEntry(source[i]);
                        fileName = zipEntry.getName();
                        zipEntry = new ZipEntry(fileName);
                        zipEntry.setMethod(ZipEntry.DEFLATED);
                        getUTF8Bytes(source[i]);
                        out.putNextEntry(zipEntry);
                        // Transfer bytes from the file to the ZIP file
                        int len;
                        while ((len = in.read(buf)) > 0) {
                             out.write(buf, 0, len);
                        // Complete the entry
                        out.closeEntry();
                        in.close();
                   // Complete the ZIP file
                   out.close();
              } catch (IOException e) {
                   e.printStackTrace();
         private static byte[] getUTF8Bytes(String s) {
              char[] c = s.toCharArray();
              FileOutputStream file;
              try {
                   file = new FileOutputStream("C:\\TestData\\output.txt", true);
                   int len = c.length;
                   // Count the number of encoded bytes...
                   int count = 0;
                   for (int i = 0; i < len; i++) {
                        int ch = c[i];
                        if (ch <= 0x7f) {
                             count++;
                        } else if (ch <= 0x7ff) {
                             count += 2;
                        } else {
                             count += 3;
                   // Now return the encoded bytes...
                   byte[] b = new byte[count];
                   int off = 0;
                   for (int i = 0; i < len; i++) {
                        int ch = c[i];
                        if (ch <= 0x7f) {
                             b[off++] = (byte) ch;
                             file.write((byte) ch);
                        } else if (ch <= 0x7ff) {
                             b[off++] = (byte) ((ch >> 6) | 0xc0);
                             file.write((byte) ((ch >> 6) | 0xc0));
                             b[off++] = (byte) ((ch & 0x3f) | 0x80);
                             file.write((byte) ((ch & 0x3f) | 0x80));
                        } else {
                             b[off++] = (byte) ((ch >> 12) | 0xe0);
                             file.write((byte) ((ch >> 12) | 0xe0));
                             b[off++] = (byte) (((ch >> 6) & 0x3f) | 0x80);
                             file.write((byte) (((ch >> 6) & 0x3f) | 0x80));
                             b[off++] = (byte) ((ch & 0x3f) | 0x80);
                             file.write((byte) ((ch & 0x3f) | 0x80));
                   file.write((byte) '\n');
                   file.write((byte) '\r');
                   file.flush();
                   file.close();
                   return b;
              } catch (FileNotFoundException e1) {
                   e1.printStackTrace();
              } catch (IOException e1) {
                   e1.printStackTrace();
              return null;
    }Thanks
    Aravind                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Different colors while printing a PDF

    I have a problem while printing my pdf document, that was generated by a mPDF library (php). When printing it in Сhrome browser the colours differ from ones i get from adobe viewer. Can anyone advice on this issue, please?
    Left is Adobe, right is chrome. I need right colours in adobe.

    Also, is it a PostScript printer, used with a PostScript driver? Will it always be the same printer?

  • Hello i am rajesh i am having problem while conveting other files into pdf format please help me

    i am rajesh i am having problem while converting other files into acrobat format please help me

    Hello Rajesh,
    I'm sorry to hear you're having trouble. Are you using Acrobat.com to convert your files to PDF? Please let me know where you are having trouble and I will do my best to help you convert your files. For your reference, here is a list of filetypes that can be converted to PDF online with Acrobat.com:
    http://kb2.adobe.com/cps/524/cpsid_52456.html#Create%20PDF
    Best,
    Rebecca

  • Problem while closing IE which displays the PDF

    Hi,
    I have an application in which a PDF form is displayed through the portal on an IE instance.
    The IE works fine until I open the pdf. Once I open the pdf im not able to close the IE. I have ti forcefully close it using the task manager.
    If I try navigating to another view from that PDF view ( Same IE instance) , the IE closes automatically throwing the 'Microsoft error' message.
    How do I avoid this??? What might be the problem?
    I use IE version 6.0
    Thanks in Advance,
    Reena

    Hi Reena,
    I am not sure, please try these solutions.
    1. Try to display the Adobe Interactive Form by adding the URL (of the Adobe Document Server) to the Trusted Sites of your MS Internet Explorer.
    2. If you are experiencing problems opening pdf documents in IE,
    then you need to  disable compression for pdf documents
    To disable the compression. please follow the steps :
    1. start the Visual Administrator in <J2EE Home>/admin directory  from the go script
    2. In the Left pane :
       Click on the "Cluster" tab.
       Browse <System name> -> Server -> Services -> HTTP Provider
    3. In the right pane
         - Make sure the "AlwaysCompressed" property does not contain any
         of the values
        *.pdf
        application/pdf
        - Make sure the  "NeverCompressed" property contains both values
        *.pdf
        application/pdf
    4. Click the save button on the top of the right pane.  The new setting will have effect on all servers in the cluster.
    configuration if you have made changes to the "AlwaysCompressed" or "NeverCompressed" properties.
    In such case you will need to perform the described above configuration manually.
    II. If you have been running custom code that relies on the pdf compression
    then you will need to maintain the  "AlwaysCompressed" or "NeverCompressed" properties back to their  previous values ("AlwaysCompressed" including *.pdf and application/pdf and "NeverCompressed" excluding both entries) after upgrade  but you may face problems with opening of pdf files in IE  as a side effect.
    //Raj

  • Having problem while converting pdf to tiff

    Hi,
    I am using adobe live cycle.I tried to convert one editable pdf file to tiff file. It was giving me an exception which seems i cant convert editable pdf file to tiff file. So first i converted editable pdf to non editable pdf and then converted the non editable pdf to tiff file. Then it is working fine. but while converting editable pdf to non editable pdf,barcode has been erased so in tiff also i am not getting the barcode. Please give me solution for this. It is a bit urgent.
    The exception stack is below
    [Long, long content removed by forum host, please repost in the proper forum. Thank you.]
    Thanks,
    Amit

    Yikes.
    Amit...
    Please navigate to the main Adobe Forums list and find the correct product forum to repost your question.
    This area is for comments and discussion about the operation of the forums themselves. No product questions are discussed here.
    Thanks!

Maybe you are looking for

  • Getting references to the objects in a VM to dynamically link MBeans

    Hi, I am dynamically generating MBeans and using Apache BCEL to change the resource classes to link themselves to the MBeans. The objective is to instrument applications wich we can't access the code and, if possible, do it on a running one. I could

  • How to edit file 'Title' in 'Get Info' (More Info)

    Hi, I hope this makes sense! I have several MP3 Audio files saved to my music file in places. When I use the 'Get Info' function the files have a Title. Is there a way to edit this Title. I can see that the 'name & extension' can be edited but when I

  • How to compile in 1.4?

    I used javac in 1.3.1_02, its not there in 1.4 though. What do I do to compile?

  • ABC analysis for Cycle Counting.

    Hi SAP gurus, I am facing a problem from the user. While doing the ABC analysis for cycle counting using the Transaction MIBC, he is getting an error " table T159c is not maintained for plant XXXX". when i checked it SPRO cycle counting is not done f

  • Library database error

    Hi, before giving details of my problem, I am using OS Lion and Aperture 3 with the latest updates. Yesterday I had problems with Aperture running very slowly, which eventually led to about 18 'crashes' and prompts to re-start my Macbook Pro. My prob