Reducing Size of Postscript file

I need to convert my original Post script file (named as SMALL.PS) to another PS file. For this currently I converting it to PDF and than PDF again to PS. This procedure takes a long time and the PS file thus created is also 5-6 times larger than orginal.
Possible solutions I am looking for:-
(1) PS to PS:-
Any tool that could properly convert PS to PS. I tried GS and Total PDF convertor TPF produced large size File and GS , quality was not good.
(2) Than I converted PS to PDF and than PDF to PS using Verypdf PDF to Vector but output PS file is 6-7 times larger.
Can anyone please suggest that what Data/Code Inside should I delete to trim down the size of my LARGE PS file. I think that there is enough redundant code inside the large size that could be deleted to make it smaller.
Alternatively can anyone please suggest any tool which make PDF to PS small file with speed maintaing the quality of Image too.
Here is my original PDF file
https://www.dropbox.com/s/1q8aa8s46zv1ssf/Small.pdf
https://www.dropbox.com/s/sy49xi7spv1xzvw/Small.ps
Here is my Bigger size file
https://www.dropbox.com/s/u09jyc7dzkz4gl1/Large%20File.PS
Thanks
Regards

Thanks,Sir Actually I text manipulated the original file using some application as I dont want to show the user that what & where I have made Changes since my original PS file is simple to understand.
After manipulation I am taking my original file to PDF using GS view and again from PDF to PS using PDF2VEC. But the file size created is too big as comapred to the original.
Can you please Tell What exact Lines (Line Numbers) that can be deleted to make it trim. Also please if anybody has Idea to convert PS to PS of smaller size will be appreciable.
REgards

Similar Messages

  • Change page size for PostScript file?

    Hi,
    While trying to stream Java2D objects to a PostScript file using Java Printing API, I found I couldn't change the page size, it always gives me ISO_A4 size. In the following modifed sample from printing doc, even if I changed the book's page size and printer media size attribute, it still gave me ISO_A4 size.
    thanks for your help
    Frank
    ==== Code ====
    import java.io.*;
    import java.awt.print.*;
    import java.awt.*;
    import javax.print.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.*;
    import java.util.Date;
    public class Print2DToStream2 implements Printable {
    public Print2DToStream2() {
    DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PAGEABLE;
    String psMimeType = DocFlavor.BYTE_ARRAY.POSTSCRIPT.getMimeType();
    StreamPrintServiceFactory[] factories = StreamPrintServiceFactory.lookupStreamPrintServiceFactories(flavor, psMimeType);
    if (factories.length == 0) {
    System.err.print("No suitable factories");
    System.exit(0);
    try {
    FileOutputStream fos = new FileOutputStream("C:/WUTemp/out.ps");
    StreamPrintService sps = factories[0].getPrintService(fos);
    DocPrintJob pj = sps.createPrintJob();
    PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
    aset.add(MediaSizeName.NA_LEGAL); // no effect
    aset.add(OrientationRequested.LANDSCAPE);
    Book book = new Book();
    PageFormat pf = new PageFormat();
    Paper p = new Paper();
    //p.setSize(595, 842);
    //p.setImageableArea(0,0,595,842);
    p.setSize(612, 1008); // didn't take it
    p.setImageableArea(0,0,612,1008); // didn't take it
    pf.setOrientation(PageFormat.LANDSCAPE);
    pf.setPaper(p);
    book.append(this, pf);
    Doc doc = new SimpleDoc(book, flavor, null);
    pj.print(doc, aset);
    fos.close();
    System.out.println(new Date());
    } catch (PrintException pe) {
    System.err.println(pe);
    } catch (IOException ie) {
    System.err.println(ie);
    public int print(Graphics g,PageFormat pf,int pageIndex) {
    if (pageIndex == 0) {
    Graphics2D g2d = (Graphics2D)g;
    g2d.translate(pf.getImageableX(), pf.getImageableY());
    g2d.setColor(Color.black);
    g2d.fillRect(0,0,200,200);
    g2d.drawString("example string", 250, 250);
    System.out.println("printing ... ...");
    return Printable.PAGE_EXISTS;
    } else {
    return Printable.NO_SUCH_PAGE;
    public static void main(String args[]) {
    Print2DToStream2 sp = new Print2DToStream2();
    }

    It turned out that it was the PS viewer mislead me. There is nothing wrong in generating PS file.
    Frank

  • How to reduce size of html files with JAVA?

    We have html files full of tab char, carriage return, blank space between tags etc. We need to reduce the size of this files.
    HTML files are automatic generated by an engine and we cannot operate on it.
    Those files are in a solaris environment and we need to launch or to schedule something that can clean the files in this environment. The only tools we found are for Win environment so we toughth to make some java classes that parse HTML and clean the files.
    Does anyone know how some tool or the way to clean a file in java?
    Thank You

    Something like this can reduce the number of spaces between tags in the body of the file:public static final String readTextFromFile (File f)
            StringBuffer fileText = new StringBuffer();
            if (f != null && f.exists() && f.isFile())
                try
                    FileReader fr = new FileReader(f);
                    BufferedReader br = new BufferedReader(fr);
                    String s;
                    char c;
                    boolean inTag = false;
                    boolean lastWasSpace = false; // so we don't have a million spaces in a row
                    boolean inBody = false;
                    while ((s = br.readLine()) != null)
                        s += " ";
                        s = searchReplace(s, " ", " ");
                        if (!inBody)
                            int bodyStartPos = s.indexOf("<body");
                            // if not in body yet, reloop
                            if (bodyStartPos == -1)
                                continue;
                            // start it off
                            else
                                inBody = true;
                                s = s.substring(bodyStartPos);
                        for (int i = 0; i < s.length(); i++)
                            c = s.charAt(i);
                            if (c == '>')
                                inTag = false;
                            else if (c == '<')
                                inTag = true;
                            else if (!inTag)
                                if (!(c == ' ' && lastWasSpace))
                                    fileText.append(c);
                                if (c == ' ')
                                    lastWasSpace = true;
                                else
                                    lastWasSpace = false;
                    if (br != null)
                        br.close();
                    if (fr != null)
                        fr.close();
                catch (Exception e)
                    System.err.println(f + ": Error reading file");
            return fileText.toString();
        }

  • How to reduce size of output file?

    Hi,
    I am using Oracle Reports Report Builder 10.1.2.0.2 to generate native Microsoft Excel spreadsheets with the DESFORMAT=SPREADSHEET, DESTYPE=FILE and PRINTJOB=No options. The size of the file is several MB, 12 MB and up to be more exact. Once I save that spreadsheet as a native Microsoft Office Excel 2007 spreadsheet, the size is less then 1MB. Any ideas on how to get Oracle Reports to generate a more reasonable sized spreadsheet file? Will an upgrade to the latest version of Oracle Reports fix this?
    Thanks,
    ScottK

    Solution
    BI Publisher has two options for this issue:
    1. BI Publisher Enterprise 10.1.3.4.1 Apply the latest Consolidated update patch.
    Note 797057.1 in oracle support 'Overview of Available Update Patches for Oracle BI Publisher Enterprise' has the latest patch number.
    This provides the ability to use true Excel (binary .xls) files as layout templates.
    This layout format will generate binary Excel (.xls) output.
    2. Or the end users can save the BIP Excel file to their PC, then open in Excel and "Save As" binary excel file, which the Excel program compresses.

  • Is there a way to prevent LR from reducing size (pixels) of files transfered to Photoshop as a psd file for editing?

    The subject line says it all.  I have discovered that LR reduces the size of files transferred to Photoshop for further editing when compared to the same RAW file processed in ACR in Photoshop.  For example, a psd file created by LR from a 36 MB RAW file will typically result in a 100 MB psd file.  The same RAW file processed similarly in Photoshop will result in a file around 300 MB.  This makes a huge difference when the files are converted to JPEGs for printing.  The smaller LR psd files result in JPEGs typically under 500 KB where the Photoshop JPEGs are typically around 1.5 MB.   

    Whew!  I didn't think this would turn into such a long discussion!.     OK - my error,  spatial data not color.  But that is loosing focus on my question.  My objective is to get the best print possible from the final JPEG file used for printing..  As previously noted, for a given RAW file w/similar adjustments but with one processed in LR and the other in PS , a print made from the larger of two resulting JPEG files, the larger JPEG file resulting from only  PS ACR processing (i.e., no LR) will result in a better print.  Elie-d appears to have answered my basic question. If LR will always pass a 103 MB file then I assume there is no way to change this size.  In case anyone is interested here is some additional info for consideration.  Both LR & PS using 8 bit mode and 240 ppi..  Procedure in LR: 1) download RAW files from camera CD; 2) make adjustments to photo;  3) using Edit in External Processor, photo transferred to PS in PSD format, 8 bit. 4) file size around 100 MB (103 MB per elie-d).  Procedure in PS:  1) download RAW file to hard drive with Nikon View2; 2) open file in PS - auto opens in ACR; 3) apply essentially the same adjustments (e.g., exposure, highlight, shadow, etc) ) as applied in LR;  4) file opened in PS editor;  5) resulting PSD file size with no further processing (i.e., no layers, etc.) is 310 MB).  The resulting JPEG file created from the LR PSD is typically less than 200 KB whereas the JPEG from the PS PSD will generally be around 1.5 MB.   As an academic question it would still be interesting to know why one gets different size PSD files from LR and PS and what, if any, affect this has on print quality.  As for now I will not use LR to process RAW files.  I prefer the larger PSD & JPEG files I get using just PS            

  • Two issues: Runtime error when trying to Reduce Size or Optimize File. And navigation in some files is VERY SLOW.

    I haven't figured out if there is a pattern here, as of yet.
    This happens with larger files (1500 pages and so forth) and not all the time. 
    - Bookmarks may take up to 4-5 seconds to go to its page.  Scrolling up and down pages is just as painfully slow.
    Even when I break the big file into smaller sections, the navigation remains slower than molasses.  
    - When I try to Optimize certain files, or Reduce their size, I get a Runtime Error. I have disable the Updater (I read this could be an issue) but that made no difference.  I have also broken the larger files into 2 or 3 pieces.  One of the pieces may work out well (I can optimize and so forth) but the other(s) may not.
    Thank you.
    PS: I use Windows XP Pro, Service Pack 3.  I have requested an upgrade (several times) but my wishes are not their command, I am afraid.

    HI ,Thanks for your response. That was an error in the code I posted, but wasn't the error I was trying to solve. Once correcting that error you pointed out I am getting the problems not when I send a plain text email like:
              if(!sendmultipart)
                 // send a plain text message
                 msg.setContent(msgText, "text/plain");
              }but when I try and send multipart messages doing this:
              else
                 // send a multipart message// create and fill the first message part
                       MimeBodyPart mbp1 = new MimeBodyPart();
         mbp1.setText(msgText);
          // create and fill the second message part
         MimeBodyPart mbp3 = new MimeBodyPart();
         // attach the file to the message
         FileDataSource fds = new FileDataSource(soundfile);
         mbp3.setDataHandler(new DataHandler(fds));
         mbp3.setFileName(fds.getName());
                       Multipart mp = new MimeMultipart();
         //adds the text to the message
          mp.addBodyPart(mbp1);
          //adds the attachment to the message
          mp.addBodyPart(mbp3);
           // adds the content to the message
          msg.setContent(mp);
         }So i get the error when executing the else branch.
    Can you spot any errors here? I get the same error as mentioned earlier.
    Thanks a lot,
    Jess

  • How can I reduce size of phote file?

    I need to upload copies of bank statement to Paypal. I took pics of my statements and need to upload them now. Each photo is 1.4 MB in size and I can only upload 4078kb in total. How can I make the file sizes smaller so I can send them. Thanks in advance, Tracy

    The Preview application (should be in your Applications folder) can do this. Open the picture in Preview, go to the File menu and select Save As. Just below where it says Format, there should be a slider bar labeled Quality. You can reduce the quality to get a smaller file size, then save. Be sure you save with a different file name if you don't want your old, full quality file replaced by the new one.
    Hope this helps you.

  • .psd file reducing size when sending file to web guy who is using PC (1020x750 changing to 640x471)

    I have created a layered .psd file for a client of mine for his website who is dealing with a web guy in India to programme it. The guy in India is using a PC.
    The file when I send it out is sized 1020pixels x 750pixels, at 72dpi. When the web guy opens it at the other end he is saying it is 640pixels x 471pixels.
    Has anyone experience this before? Is there something I am setting up wrong within my .psd file?

    You might be using Snow Leopard 10.6 and you  might have sent the message without noticing the option in the lower right of your message window.
    http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-2516338-18245/355-193/Screen+s hot+2010-01-13+at+5.32.18+PM.png

  • How to minimize the file size of a file with drawing markups

    Scenario:
    I need to turn a sample of a report into a report template, so I am deleting as many objects as I can with the Tools>Content>Edit Object.  For text that I cannot delete that way, I am covering it up with a white box (Comment>Drawing Markups>square and setting outline = white and fill = white).  On this particular PDF, there are about 20 of these white boxes.  I'm then using Preflight>Flatten annotations and form fields to flatten all of the markups.
    Problem:
    Unfortunately, even after using Preflight and Save As>Reduced Size PDF, the file size is still over 900 kb.  The original file size before I make any changes is less than 150 kb.  I need the final file size to be 200-300 kb.
    Settings:
    Windows 7
    Adobe Acrobat X Pro
    Solutions?
    I may be going about this all wrong, so any advice you have is much appreciated!  The only other thing I can think of to do (since I can't get a blank sample report), is to recreate the report in Word and then PDF it.  I'm hoping there's a better solution.  I tried Photoshop first and the file sizes were in the MBs, so I switched to Acrobat.  Maybe a different program would work even better?

    Basically that is what Bill is telling you. The best method is to:
    create the design of the form in Word.
    Save as a PDF (on a Mac the best method is to go to print menu click pdf and hold mouse or track pad button down, and Chose Adobe PDF) .
    Then open PDF in Acrobat
    Click on Tools
    Click on Forms and create form. Either letting acrobat create the fields and add or take away fields as need.  Or create fields manually.
    This way should you need to make correction you can open the original Word Document, Make chages save as PDF The in open original in PDF. Click on Tools > Pages and choose replace pages and replace desired page(s) as needed. Then readjust fields if needed or add or take fields as needed.

  • Dialog box size when saving a postscript file CS5 is huge.

    When i save a postscript file, the dialog box that allows me no navigate to the place I wish to save my file is huge. About 10 inches wide and 3 inches high.
    I have tried to resize this box, expecting that the last used dimensions would be remembered the next time I entered this box but I get the same huge overly wide and not deep enough box.
    I hate resizing this box so I can see my sidebar. This never happened in CS3. CS3 honored the box as I sized it every time I saved.
    What is wrong with CS5?
    Where do I change this behavior.

    Replacing preferences did not help. System updates did not resolve this behavior.
    The other behavior I hate is when I open a document the application window enlarges to the maximum area on my monitor. The application window occupies the left edge to the dock on the right, just below the menu bar at top to the very bottom edge of the monitor.
    Most other applications remember what the last window size of a document was when I saved and closed it.
    What I end up doing EVERY TIME I OPEN A FILE is shortening the window on the right and bottom so I do not have my tool windows covering my document. I like Static tools, not auto hide.
    As long as I am griping I'd like to know how to turn off the auto resize of the document view when I enlarge or reduce my window. I want the document to remain a constant size UNTIL I DECIDE to resize it.

  • Have CS5 and CS6.  Need to reduce size of file from 6Mb to 2 Mb for contest purposes without losing original

    Have CS5 and CS6.  Need to reduce size of file from 6Mb to 2 Mb for contest purposes without losing original

    Just save the document to a new jpeg file name using a lower quality setting or re-size the image down in  size the save a high quality smaller new jpeg image.

  • How to reduce size or compress PDF files?

    Hi guys,
    Does someone knows if there is a way  to reduce the size of the PDF file with good quality even on Pictures and Scanned documents? I know the option 'export', 'quartz filter' 'reduce size', but the compression is so extrem. Many files can't not been read, the quality is so bad. Is there a additional app, software or extension that let the user play with the compression on pdf files and let it be more personalized like the dopdf V7 available for windows? i am very dissapointed with this. Please help or suggestion. I will appreciate it. Thanks

    I have used the excellent PDF Toolkit app for a while, and its preformed well. Occassionaly it makes the document into a negative image...which Im noyt sure why...
    Mathishk, im trying your online version out, and am impressed and admire the fact that you have done this.
    Well done. 
    A TRICK i use often. Once all hires images are on the designed document - and its coming in at 15-20mb, just change the link to the images so they are 'missing' then make a pdf.
    i.e 'Hi Res images' to HRes images - old'
    The screen resolution of images is still great, but file comes in at fraction of the size.
    You 'trick' the document to use screen images only. So my 18mb file comes in as 5.2mb.
    Just remember to change the images folder name back, so files relink.
    Andy

  • Adobe Acrobat XI pro version, Windows 7, running on iMac parallels, converting pdf to a pdf with reduced size is not possible, error: error in converting the file! What to do? Its a bit annoying not to be able to store pdf files in reduced size, any idea?

    Adobe Acrobat XI pro version, Windows 7, running on iMac parallels, converting pdf to a pdf with reduced size is not possible, error: error in converting the file! What to do? Its a bit annoying not to be able to store pdf files in reduced size, any idea?? Thanks, Jörg

    Hi Jorg ,
    Are you trying to reduce the file size with the "Reduced size PDF" in the save as other option.
    Give it a try if you haven't done it prior.
    Open that PDF>File>Save as Other>Reduced size PDF.
    If possible ,please share the snapshot of the error message with us so that we can have a look in order to assist you further.
    Regards
    Sukrit Dhingra

  • I am shooting with a Nikon D60 on Fine Format and unable to print larger than 11x14.  I have been able to print larger pictures.  I am told iPhoto reduces the size of the file when uploaded. Is this true? If so how can I change this?  I need 16x20's

    I am shooting with a Nikon D60 on Fine Format and unable to print larger than 11x14.  I have been able to print larger pictures.  I am told iPhoto reduces the size of the file when uploaded. Is this true? If so how can I change this?  I need 16x20's

    I am shooting with a Nikon D60 on Fine Format and unable to print larger than 11x14.  I have been able to print larger pictures.  I am told iPhoto reduces the size of the file when uploaded. Is this true? If so how can I change this?  I need 16x20's

  • Save as Reduced Size PDF and Save as Optimized PDF do not reduce the file size.  What gives?

    Save as Reduced Size PDF and Save as Optimized PDF do not reduce the file size.  What gives?  I used Acrobat 9 to do this for a long time.  I recently received new laptop loaded with with Acrobat 10 and it does not work the same.  I typically scan 8-10 pages of receipts, combine the files in Acrobat, and then optimize to reduce the size so I can upload with my expense report.  Typically, my files were reduced to 200-400 KB.  I have a 2 MB file that will not reduce at all.

    Bernd, thank you for your attempt to help but the option dialog windows do not contain the same options.  There are numerous other posts on this forum about this issue and there is no answer.  Clearly, there is an issue.  I have submitted this issue to our internal help desk.

Maybe you are looking for