Downsample pdfs

I have a 24"x36" poster with a 300DPI background image wieghing in at around 180. If I export a PDF it comes out at 300MB. I have no image compression or downsampling - yet.
If I scale the image down to 50% and add:
colorBitmapSampling = Sampling.BICUBIC_DOWNSAMPLE;
colorBitmapSamplingDPI = 300;
to my pdf export, I should get a smaller PDF correct? I don't really want to jpeg the images - what other tricks can I use to keep the file size down? I think I have all the pdf export parameters but not sure
thanks,
Bob
function myPDFExport()
        //Basic PDF output options.
        pageRange = PageRange.allPages;
        acrobatCompatibility = AcrobatCompatibility.acrobat8;
        exportGuidesAndGrids = false;
        exportLayers = false;
        exportNonPrintingObjects = false;
        exportReaderSpreads = false;
        generateThumbnails = false;
        try
            ignoreSpreadOverrides = false;
        catch(e) {}
        includeBookmarks = false;
        includeHyperlinks = false;
        includeICCProfiles = true;
        includeSlugWithPDF = true;
        includeStructure = false;
        interactiveElementsOption = InteractiveElementsOptions.doNotInclude;
        //Setting subsetFontsBelow to zero disallows font subsetting;
        //set subsetFontsBelow to some other value to use font subsetting.
        subsetFontsBelow = 0;
        //Bitmap compression/sampling/quality options.
        colorBitmapCompression = BitmapCompression.none;
        //colorBitmapQuality = CompressionQuality.eightBit;
        //colorBitmapSampling = Sampling.none;
        colorBitmapSampling = Sampling.BICUBIC_DOWNSAMPLE;
        colorBitmapSamplingDPI = 300;
        //thresholdToCompressColor is not needed in this example.
        //colorBitmapSamplingDPI is not needed when colorBitmapSampling
        //is set to none.
        grayscaleBitmapCompression = BitmapCompression.none;
        //grayscaleBitmapQuality = CompressionQuality.eightBit;
        grayscaleBitmapSampling = Sampling.none;
        //thresholdToCompressGray is not needed in this example.
        //grayscaleBitmapSamplingDPI is not needed when grayscaleBitmapSampling
        //is set to none.
        monochromeBitmapCompression = BitmapCompression.none;
        monochromeBitmapSampling = Sampling.none;
        //thresholdToCompressMonochrome is not needed in this example.
        //monochromeBitmapSamplingDPI is not needed when
        //monochromeBitmapSampling is set to none.
        //Other compression options.
        compressionType = PDFCompressionType.compressNone;
        compressTextAndLineArt = true;
        cropImagesToFrames = true;
        optimizePDF = true;
        colorTileSize = 128;
        grayTileSize = 128;
        cropMarks = false;
        omitBitmaps = false;
        omitEPS = false;
        omitPDF = false;
        pageInformationMarks = false;
        pdfColorSpace = PDFColorSpace.unchangedColorSpace;
        //Default mark type.
        pdfMarkType = 1147563124;
        printerMarkWeight = PDFMarkWeight.p125pt;
        registrationMarks = false;

Yes, if you're scaling, you definitely ought to downsample images during export. I don't know your reasons for avoiding jpeg compression, but that would give you the greatest reduction in file size. (Maximum quality jpeg compression is not  visually detectable to me at all, except maybe in large, subtle gradations.) If you're not going to use jpeg compression on the images, I really don't see any reason you wouldn't at least use zip compression. You can also use
compressionType = PDFCompressionType.COMPRESS_OBJECTS
to compress the pdf itself; I can't say I understand exactly what that does, but I've never run into a problem with it. You could also exclude ICC profiles, depending on the needs of whoever is using the file downstream.
By the way, it looks to me like your function is just setting a bunch of global variables. Maybe there was a
with (app.pdfExportPreferences) {
in there at some point?
Jeff

Similar Messages

  • Downsampling pdf on the mac...?!

    my butt is dragging on this issue and I feel like asking pdf for my butt back.
    i am using Preview, Aperture, and Pages - among other things and I need to get a submission with images uploaded somewhere so that it is under 2 MB. I finally figured out that I need to run a File > Reduce File Size when in Pages to get my images to only take up as much space as their /actual/ size and not the size that I brought them in at. This is nice to know after messing with it on and off for about a year and a half.
    However - can someone PLEASE help me find out how to do this in Preview or in Aperture? In the former case I want to print out a series of images as an "image-per-page" PDF and in the latter case I need to print out a CONTACT SHEET with Thumbnails.
    And I can't figure out how to get either of these out at less than 8 - 16 MB which is wh-aaaaaaay too big.
    Is there a "pdf downsample" utility? Why is printing such a colossal you know what?
    Help please on either of these? I've not made any progress on the other sections of the forum.
    Much Thanks (and sorry for the mild vent),
    Jon

    man. thank you. what a relief.
    i think i might have 50 GB of pdf's on my hard drive that I need to convert. I wonder if there is a utility out there...
    anyway, can I please ask you for some advice if I needed to get something down further? is there some way to run the quartz filter (interesting name...) again in some way or to reduce these some other way?
    also, does anyone happen to know if I can find out how large any particular image is in this document so if I need to take off some images to make a size limit I can do this? or do all of the images take up the same amount once you have Reduced their size with the quartz filter...?
    Thanks for any more leads.

  • Downsampling pdf's

    I have a four page pdf scan of some images that I prepared which is 53 MB and I have not been able to email this document.
    This originally was a four page contact sheet prepared with Aperture or Adobe Elements, I then printed to pdf with Preview and printed - I then marked up and scanned this mark up at 200 dpi so I could distribute it.
    I realize I can change the dpi of the original scans (there were four of these) but what is the best way to reduce the image size of this document now that it it in pdf or just before printing to pdf.
    I took a look at it in Preview this morning and I don't get the Tools > Adjust Size apparently when dealing with pdf in Preview.
    I've posted on this once before, but there is a bug that is preventing me from being able to see all my posts at the moment and I'm trying to gather up everything in one place on this issue.
    Thanks for any help (or any more help),
    Jon

    Photoshop will do this for you.
    However since most of us don't have photoshop, then you can use preview.  Off the top of my head, a really quick and dirty way to do it would be to export it to jpeg, then convert it back to PDF.
    You'll probably lose some page breaks etc, but /shrug that'll reduce the size alright.
    And FYI, this is the server discussion forum.  You should maybe post this here.
    https://discussions.apple.com/community/mac_os/mac_os_x_technologies
    -Graham

  • Bulk Downsampling PDF's??

    I have a problem with my image sizes taking up too much space on my HD and am now looking at PDF's.
    It appears that some of these which I downloaded take up large MB's of data because either I or someone else did not run a IMAGES ACTUAL SIZE or whatever the command was to reduce the file size for these on the Mac.
    Is there a good way to scan my HD for PDF's, select the unbelievably huge ones and run this operation or do I have to do this manually?
    Thanks.

    If you have Acrobat Pro you can create an Action with no steps in it, but with the final "save" options set to overwrite. Test it first though, there's no going back!
    I would suggest including an optimize step though, to ensure that the file contents are compressed in the best way for the type of data they contain. You should be able to get the size down to what it used to be, but will need to play with the level of image compression you can get away with before the scanned document becomes unreadable.

  • Selective downsampling when exporting to PDF?

    Hi,
    I have a booklet with a number of pics in it. When I export such a job to PDF to create a print-ready version normally I'd just set it to downsample all images to 300 dpi, but in this case some of the pics are technical drawings with text and fine lines that I'd prefer to keep at a higher res - even up to 1200 dpi if possible (the drawings are large enough to provide this quality).
    So, is there a way of tagging individiual images in InDesign such that they won't be downsampled on export to PDF?
    Cheers,
    MP

    @MP – there is a way to get the high-res images to the final PDF after you are downsampled the PDF. But this is a labor intensive process and requires Acrobat Pro and PhotoShop.
    There are also some restrictions.
    1. The PDF must not be flattened by  flattening transparency.
    PDF/X-4 as output would be ok with that. No PDF/X-3, no PDF/X-1a, if possible…
    2. You cannot use images with a clipping path
    Avoid to process, because some extra steps are necessary,
    3. If Images or their containers are rotated and/or sheared
    4. If the images are scaled unproportionally
    5. If images are cropped
    The process would be:
    Open the downsampled PDF in Acrobat Pro.
    Open PhotoShop with the original image in high-res quality.
    In Acrobat Pro use the TouchUp object Tool to open the low-res image in PhotoShop.
    In PhotoShop set the resolution of the downsampled image to the resolution of the original without changing its dimensions (width x height); in effect up-sample the image to its original values.
    Copy/Paste the pixels from the high-res original to the one opened from Acrobat Pro.
    Merge all layers to the background layer.
    Save and close the one opened from Acrobat Pro.
    It's clear that this process is labor intensive and could only be a workaround, if just a few images should maintain a very high resolution.
    And: it's highly debatable…
    Why not leaving all images at high-res?
    File size? No problem in  workflows nowadays, I think…
    Uwe

  • ColorSync or other to reduce pdf size

    I'm having a devil of a time with prints to pdf ending up at 40 or 50 Mb and scans doing the same.
    I was advised to dowload ColorSync but can anyone help me figure out how to use this to downsample pdf's? I'm reading the help and can't figure it out.
    Also, when printing from PREVIEW to pdf are there settings or pulldowns which I can use to set the DPI or otherwise keep the file size down??
    Thanks.
    Jon

    Hi. Thanks. I am on OSX 10.6.
    I have two issues.
    1. PDF's are huge and I need to downsize them periodically.
    2. I need to prevent them from becoming huge when I print (but I also need to /downsize/ them when I have them on my hard drive and they are too big to email or keep that way on the HD).
    I am a new user so can you help me a little here?
    What are the steps to getting to the image you show? Say I have five images or scans open in Preview. You are showing me how to print to pdf but in a way that will keep the file size small, yes?
    If so, I go to Print or Print Selected and then what? Do I have the "Preview" pulldown set in this dialog, do I have the Format pulldown, do I go to the pdf pulldown in the lower left hand corner?
    I have not been successful with this but I'd like very much to be.
    Thanks!

  • How to compress pdf with images

    Hi,
    How can we compress pdf size using Acrobat SDK?
    Also can we downsample pdf image elements?
    Waiting for your important ideas.
    Thanks & Redards,
        Avinash

    Hello, lrosenth:
    I want compress pdf with c#.
    More details:
    1.      Use in ASP.NET web site
    2.      pdf files user uploaded with big image
    3.      Compress pdf size using Acrobat SDK
    As you said “When you do the PDDocSave, be sure to specify all the various compression options including full save.”
    Could you tell you how to set the options with C# by program?
    Waiting for your important ideas.
    Thanks & Redards,
        KevinLi

  • Downsampling algorithm for JPG images in both PDF or automatic mode

    Hello,
    the question is: which algorithm is used when images are formatted by the Folio Builder in the Folio or Articles properties?
    My question is focused on the static images and I know that it would be better to resize images before placing them in the document.
    The question is also related to the image format.
    If I use a non-compressed format such as the TIFF (without compression) then the images are re-formatted as JPG or PNG.
    We know that both automatic and PDF option saves images as JPG or PNG depending by the transparency contained in the graphics.
    After this considerations I think that save static images as PNG before placing them in InDesign document could be a solution to obtain images without any compression.
    Am I right?

    Thanks Ankit,
    but in the article there is no response to my question: which algorithm is used to downsample the images and wich is the best way to mantein the images quality in both Automatic and PDF.
    This is the problem.
    Thanks

  • How to downsample a grayscale pdf to a monochrome?

    Hello!
    How to downsample all pages in a pdf file (which are grayscale bitmaps) to monochrome?
    Best regards,
    Dmitry

    Balaji,
    In your second command, you copied the "*" from my post. That is not part of the command. It supposed to turn the text into bold. Sorry for the misunderstanding.
    My suggestion was for you to try to work with a single-band image. I don't know what are the other commands you have in your code but are you sure that the error message "invalid band and layer number" is coming from sdo_geor.createTemplate? You might have some code after that is still expecting the 3 bands and that is where the error is coming from.
    So here is the summary:
    If what you want to see is a "grayscale" image and your data type is 32BIT_REAL, there is no need to 3 bands. If you have to have 3 bands. You can use GeoRasterViewer and play with the option "View>Show Layer Mapping" or alt+p to select the band you want to see. If you want to see band 1, select "1" for Red, "1" for Green and "1" for Blue and click on "Refresh".
    Photo viewers can only handle well unsigned 8 bit integer. I suspect. On GeoRasterView you might try the "Image" processing option to find the best representation of the cell values of that image.
    Regards,
    Ivan

  • Image aliasing when exporting print PDF at 300 ppi (bicubic downsampling)

    Hello,
    i am trying to describe a problem which persists since version CS3 of InDesign. It's about aliased edges in images in a certain angle; occuring when exporting the brochure as PDF file (at 300 ppi). The placed images are always at a higher quality than needed (for example 780 ppi effective). The aliasing is not there when opening the original image files in photoshop (viewing at 100%).
    The PDF export settings are:
    - Compression: Bicubic downsampling to300 ppi for images above 350 ppi (for color images, grayscale images and monochrome images)
    - Crop Image data to frames
    - Marks: Crop Marks and Page Information
    - Output: No Color Conversion
    - Advanced: Transparency Flattener: High Resolution
    - Compatibility: Acrobat 4 (PDF 1.3)
    - PDF /X-3:2002
    Below are two screenshots
    - The left one was the original image, downsampled to 216 mm in width using automatic bicubic downsampling
    - The right one is the result when exporting a InDesign Document with the same width to a PDF with the mentioned settings
    Downsampled in Photoshop CS6 to 216 mm width
    Exported from InDesign CS6 with mentioned settings
    I have no clue what happens here, but it looks like the internal downsampling of InDesign CS6 is not very good.
    When i write a PostScript file of the brochure and put it in Distiller (with the same PDF Preset as above), the image looks like the one made with Photoshop. So this problem has to lie somwhere deep in InDesign or it's settings.
    Anybody with similar experiences?

    Rob Day wrote:
    Something about your test looks off. The export from ID and export from PS PDFs are both zoomed at 1200%, but the export from ID vrsion is 90% smaller.
    Yeah I noticed that I actually had the image in InDesign scaled @ 90%, so the effective ppi was around 650.  I get the same jagged results when I use anything other than a 300 or 600 effective ppi.  Whereas if I use a 650ppi image in Photoshop and export to PDF, it downsamples smoothly.
    Rob Day wrote:
    The diagonal lines in your test are 1 pixel so at 300ppi to an offset press at 150lpi, the lines would be less than a halftone dot so I'm pretty sure you would need a loupe to see any difference. Maybe with a stochastic screen there would be better resolution but still difficult to see. So if the printing is that good I would just export without down sampling. With disk space running at 15 cents a gigabyte there's not much to gain with a downsample.
    It becomes noticeable with some images more than others, but I'm printing a lot of images of buildings and drawings with sharp lines that converge to a point, or are distinguishable in the full size image but indistinguishable when downsampled.  This can introduce distracting patterns when they aren't downsampled smoothly, something like this:
    Unfortunately the printers near me aren't very good, so I'm having things printed online, and this particular printer (blurb.com - for a small job) won't accept large PDFs without compressed/downsampled images :/  I'm making 300dpi versions of the really crucial images for the time being, but I'm hoping there is a better solution!
    The other issue is exporting the PDF for use on the web, either as a download or on an online PDF viewer like issuu.com.  The two PDFs on the right side of my test look much better in these situations.  Is there any disadvantage to using Distiller to make my PDFs for this purpose using the Device Independent setting?  I don't have any special interactive elements. 

  • Image Downsampling Settings for PDFs

    Hello.  I am experimenting with the PDF settings in Acrobat to try to find a good compromise between image quality and file size.  I am trying to learn about bicubic downsampling for images and what would be good settings to use.  One thing that I've noticed in the different default PDF settings provided by Adobe (High Quality Print, Press Quality, Standard, Smallest File Size, etc.) is that the pixels per inch threshold for downsampling images is always 1.5 times greater than the downsampled image.  For example, the Standard setting downsamples images above 225 ppi to 150 ppi, and the High Quality Print setting downsamples images above 450 ppi to is 300 ppi.  Could someone explain the reason for using this ratio?  Also, why not just have one value for downsampling?  For example, for the Standard setting, why not just downsample all images above 150 ppi to 150 ppi?
    Thanks in advance for any help.

    Mark,
    To get the highest possible quality jpeg you need to export with the preset "Jpeg - original size" with its default settings.  Check, how they are set:
    Size to:  This lets you specify the dimensions of your image files in various ways.
    Original size, percent of original size, fit within all refer to the dimensions of the digital image measured in pixels, and that is directly related to the resolution of the the image. You will want to preserve as many pixels per row and column as the original image has, so set this to original size.
    cm, inches refers to the width and height of the printed or displayed version of your image. It will only make sense, if you specify dpi as well. Then the pixel size of your exported images will be computed from the dpi (dots per inch) you set and the dimensions in inches.  I prefer "Original size", unless I know I want to print an images with 4 by 6 inches e.g., then I use this setting and set the dpi to 300.
    The image quality slider: Jpeg is a lossy format, as you probably know. A jpeg image is not represented by a grid of pixels but by a set of coefficients for a mathematical approximation function. The higher the quality value,  the more coefficients will be stored and the more storage will be needed. A low value will result in a highly compressed image file with a small size, but horrible quality, because the approximation is not very accurate. The edges and fine details will be approximated poorly, and the image will show blocky artifacts. The quality sider set to 12 will ensure that the image will be represented perfectly with no artifacts, but the size of the image file will be a lot larger. A quality of 10 will be a good compromise in many cases, but you will have to experiment. This will largely depend on the type of image you are having.
    I'll leave the answer to the last three points to the colour experts here.
    -- Léonie

  • Monochrome bitmap bicubic downsampling for PDF

    Whilst saving out a PDF for print using the default high quality print setting, under - compression - monochrome bitmap image - bicubic downsampling setting, is set at 1200. This produces a large file size and if you reduce this number to 300 the PDF size is much smaller. I can't see any reduced quality and I don't actually have any monochrome bitmap images in my document but I don't actually know what this setting is doing. Could some one explain what it is and if reducing the resolution is going to reduce the quality in some way?
    Thanks for the help.

    Rob Day wrote:
    Something about your test looks off. The export from ID and export from PS PDFs are both zoomed at 1200%, but the export from ID vrsion is 90% smaller.
    Yeah I noticed that I actually had the image in InDesign scaled @ 90%, so the effective ppi was around 650.  I get the same jagged results when I use anything other than a 300 or 600 effective ppi.  Whereas if I use a 650ppi image in Photoshop and export to PDF, it downsamples smoothly.
    Rob Day wrote:
    The diagonal lines in your test are 1 pixel so at 300ppi to an offset press at 150lpi, the lines would be less than a halftone dot so I'm pretty sure you would need a loupe to see any difference. Maybe with a stochastic screen there would be better resolution but still difficult to see. So if the printing is that good I would just export without down sampling. With disk space running at 15 cents a gigabyte there's not much to gain with a downsample.
    It becomes noticeable with some images more than others, but I'm printing a lot of images of buildings and drawings with sharp lines that converge to a point, or are distinguishable in the full size image but indistinguishable when downsampled.  This can introduce distracting patterns when they aren't downsampled smoothly, something like this:
    Unfortunately the printers near me aren't very good, so I'm having things printed online, and this particular printer (blurb.com - for a small job) won't accept large PDFs without compressed/downsampled images :/  I'm making 300dpi versions of the really crucial images for the time being, but I'm hoping there is a better solution!
    The other issue is exporting the PDF for use on the web, either as a download or on an online PDF viewer like issuu.com.  The two PDFs on the right side of my test look much better in these situations.  Is there any disadvantage to using Distiller to make my PDFs for this purpose using the Device Independent setting?  I don't have any special interactive elements. 

  • PDF downsample??

    I have a pdf with a 100 mb 400 dpi tiff image placed in it.  I'm exporting a pdf at the same size with no compression (do not downsample selected)
    The resulting pdf is only 8mb. . . that seems really low for a color photograph 13 x 20'' 300 dpi. . . cmyk.    Why is it so low??

    You mention all of the relevant parameters, but just to make sure. You set both
    1. No downsampling -- "Do Not Downsample", for Color Images?
    2. Compression -- "None"? (Actually, you could safely set it to "ZIP" without any adverse effects; but 'none' ought to work as well.)
    A simple calculation does prove you are correct to doubt the result:
    13" x 20" x 300 x 300 dpi  x 4 channels equals slightly over 89 MB. And that's purely your image; without the rest of the PDF.
    (In fact, your Info panel shows 400 dpi, so it'd add up to almost 160 MB, just for this image.)

  • Exporting to PDF sometimes disallows changing downsampling resolution

    Certain InDesign files will not let me change the downsampling resolution under the Compression section. It just beeps at me. Most other files let me just fine. What causes a file to disallow changing the export resolution?

    The only one by default is "Press Quality"
    It depends on the settings in the Compression area.
    You will see a drop down box that says "Do Not Downsample" you should be able to change this to "Bicubic Downsampling to:"
    That should allow you access to change how much you want to downsample to

  • Acrobat error message: The PDF document contained image masks that were not downsampled.

    I'm .pfing a document from InDesign CS2, and even after I use Acrobat 8 to try to reduce the file size, the file is still about 12 mb. I 'm getting the error listed above, and wondering if that has anything to do with it.
    Any suggestions?
    Thanks.

    Content streams are pages, type 3 fonts, comments (annotations), form fields and XObjects.
    If you're really concerned about the file size, one trick (although not recommended since it can cause other issues such as fonts busting out, colour transformations etc) would be to open the PDF and then PRINT to the Adobe PDF printer using say STANDARD or SMALLEST FILE SIZE ... this re-fry might will remove/re-create the content streams and reduce the overall size.
    Cheers,
    Jon

Maybe you are looking for

  • How can I return to earlier version of Edge animate?

    Since upgrading to Edge Animate 3 CC, I have not been able to work on my project. Is there a way to go back to an earlier version? I uninstalled and installed an earlier version, but the file will not open, because it says that it was created in a ne

  • OBIEE 11.1.1.7 installation Issues - Fails on Creating a Domain

    Hi, I have completed all the steps mentioned in different posts in this forum regarding my error, but none of them helps. After comprehensive searching i have tried to install OBIEE with these steps also. 1st time installation: 1. Followed simple ste

  • Audio In/Out problems

    Hey First thing is - Can I use a regular microphone from a headset in the Audio - IN port on the MacBook? Secondly - The headphone port is REALLY loose and can be moved less then a millimeter and it will revert back to the internal speakers instead o

  • SAP Business Explorer not working

    Dear Moderators, This is to have some advice regarding the problem in my system for Business Explorer. I am not able to open SAP Business Explorer's Query Designer, Report Designer and Web Application Designer. Error Descriptions: 1. SAP BEx  Query D

  • Unique discount codes / gift vouchers

    I have a client who is wants to be able to send a customer a gift voucher / discount code with their receipt that is valid for one week and only redeemable once. Basically to encourage them to buy again that week or to pass it onto a friend if they a