JPG images bloat CFDocument PDF 10X

We're creating PDF files using the CFDocument tag. We're
including JPG images in the document. The JPG files are 1MB in file
size total but the resulting PDF file is 11+ MEGs (10X). I've been
searching the forums and Internet but I'm having trouble finding
anything about this. All I could find on the topic is something
about duplicate color spaces but it didn't solve anything.
Note that if I open the file in Acrobat, I can
compress/optimize it down to less than 1 MEG but that's not a
practical solution programming-wise. I wish there was a way to call
Acrobat from CF to take advantage of the optimization feature.
Does anyone know of a fix or work around for this? We'll be
generating thousands of PDFs and this will be a big problem. Do you
know of an alternate way to generate PDF files from CF. OR how
about a command line utility or CFX for compressing PDF files?

How do you use it, as a service on the server watching a
folder and doing bulk optimizations, or file-by-file from
CF?

Similar Messages

  • Scalable .JPG images in a PDF

    We need out clients to be able to click on an image in a PDF we produced, and have the images be scalable or have the abliltiy to open in another window. We are currently using PrimoPDF. What program would be best suited to our needs? Thank you.

    Here's a sample that causes a larger image to be displayed in the same PDF when a smaller image is clicked: https://acrobat.com/#d=aP-2xL45pM57xVkT6d6fSg
    The two smaller buttons demonstrate two different methods. Click on the larger button to hide it. (I didn't attempt to optimize for size, the smaller images in particular, so the file is larger than it needs to be.)

  • 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

  • Creating PDF with IMAGE using CFDOCUMENT TAG

    Hi Guys,
    I m facing problem while creating the PDF using CFDOCUMENT
    tag.
    Actually my clients want the IMAGEs in PDF document.
    Problem is most of the images in JPG format and while I am
    going to attach images in PDF document it takes lots of time for
    creating PDF. In most of time it cause timeout.
    I have try to convert images JPG to PNG, yes I some what
    better performance than JPG format but still it is work for 20 - 25
    images. In my case I want to attach normally 50-100 images in PDF
    (sometimes it is more 200).
    PLZ, Help me.. F1...F1...F1
    thanks in advance
    Pritesh
    Coldfusion Programmer

    I am having a similar and more serious problem. It takes a
    long time to execute, but even attaching a small image balloons the
    pdf to 6MB plus. After a few images it gets up to 20MB. These are
    100k jpeg files being attached. The resulting PDF is too large to
    email or process effectively. Does anyone know how to reduce
    size/processing?

  • Images not displaying in CFDOCUMENT PDF

    Hi there,
    Has anyone notice any problems with images in dynamic PDF
    using CFDOCUMENT? I have a site where I create several dynamic PDF
    document (with images) and all of a sudden, they stop displaying.
    The only new addition was a SSL for the site.
    Any help would be greatly appreciated.

    Thanks, Isaac.
    My reason for posting that I was trying the src="file://E:\ solution before putting it in CFDocument was that I figured if it didn't work with the browser, it probably wouldn't work with CFDocument, which was probably presumptuous of me.  I just tried using the IP Address instead of E:\etc and it shows up in the browser.  Good news, the IP Addresses fix the logo problem, but not the CFChart problem.
    Here's the failed img tag:
    <img src="logo_30.jpg" width="96" height="50" border="0" alt="">
    Here's the successful img tag:
    <img src="http://ipaddress/portal/PROD/Forms/monthly_reports/logo_30.jpg" width="96" height="50" border="0" />
    Here's the chart code:
    <CFQUERY NAME="GrabData" datasource="admi-prod">
              sql goes here
    </CFQUERY>
    <cfset gwidth = 450>
    <cfset gheight = 320>
    <cfset min = int(arrayMin(grabData["total_inventory"])) - 1>
    <cfif int(arrayMin(grabData["total_idle_capital"])) LT min>
            <cfset min = int(arrayMin(grabData["total_idle_capital"])) - 1>
    </cfif>
    <cfset max = ceiling(arrayMax(grabData["total_inventory"])) + 1>
    <cfchart scalefrom="#min#" scaleto="#max#" title="Total Closing Inventory & Total Idle Capital" format="jpg" chartheight="#gheight#" chartwidth="#gwidth#">
            <cfchartseries type="line" query="grabData" valuecolumn="total_inventory" itemcolumn="xlabel"/>
            <cfchartseries type="line" query="grabData" valuecolumn="total_idle_capital" itemcolumn="xlabel"/>
    </cfchart>

  • Signing a PDF/A with a JPG image, invalidates the compliance

    I am trying to sign a PDF/A document.
    I can't do it with Adobe Acrobat without invalidating the PDF/A compliance. So I am using our tool to sign the file.
    When I use a BMP as the graphical represenation of the signature, the file remains compliant, if we use a JPG image the compatibility fails.
    The only difference between the two PDF/A files (compliant and incompliant) is the XObject that is different (one is simple neat bmp object, the other is a JPG, with Fileter /DCTDecode etc.).
    I would like to know if there is any way I can make the JPG image to work without invalidating the PDF/A compliance, or is it inevitable, as a JPG object has attributes that contradict basic concepts of PDF/A.
    Thanks
    Tal

    Thanks.
    what you say about PDF/A being a final version makes a lot of sense, but not when you are talking about digital signatures of course.
    if you first sign and then convert the file to be PDF/A compliant you automatically invalidate the signatures.
    long term electronic archiving and digital signatures is a perfect match, and people still ike to see their hand written signature, even on an electronic document, and it is exactly where the problem begins.
    the pre flight is very cheap with information.
    it gives me a general note on the XObject that it should start with stream and then CR LF, and must end with an endstream preceeded by EOL. as far as I can tell my object complies with these requirements

  • Convert JPG images to PDF

    Working with 8.0 Pro. I want to basically open the JPG image and save it as a PDF via VB script. For some reason, I can't seem to make it work. Can anyone provide a few lines of code to do this?
    Thanks for any help.

    I can't think of a simple way to script this, except to open the JPEG
    in a separate application and print to PDF. But maybe you've found a
    way I missed. Can you share what you have tried?
    Aandi Inston

  • Displaying JPG images in PDF report

    Hi
    We developed a report, wich generates modul documentation from designer repository. In the repository the JPG images are attached to modules. The images have different sizes. The report reads the modules description and displays the images attached to modules.
    The report resizes the images. Seems like the image wide is resized to fit perfectly in the containing frame.
    This behavior is god when we have a bigger image, than the containing frame. But if we have a smaller image than the frame, the reports enlarges the image.
    How can we prevent this behavior?
    Thanks

    I think for that particular image object in layout model, if you can set the vertical and horizontal elasticity to fix, the image will not resize.
    Thanks
    Rohit

  • How to improve the resolution of jpg files in a pdf created from html

    I have a document in html that I need to convert to pdf. If I open the html in acrobat, the images look fine, almost the same as if I open the file in a browser. If I do "create pdf from web page", the jpg files imbedded in the html look terrible in the resulting pdf. Where can I adjust the resolution settings so that the jpg images look better in the pdf?
    I need to use "create pdf from web page" because I need access to the options to change the page size, margins, and header/footer, which I can't seem to find when I just open an html file and save as pdf, etc.
    LHH_enc

    Do you have a particular URL that we can look at to see where the problem might be? As far as adusting margins and such from your browser, those would be in the browser print settings to provide that option. You also would need to check possibly to use the Print or Press settings file to get better graphic resolution. The settings file selection may also be important if you use PDF Maker in one of the browsers that use PDF Maker.

  • Image Quality in PDF Reports

    Hi,
    I have a rectangular JPG image which is holding the company logo. Most of the image's background is coloured white.
    If I import the image into MS Word for example, when I print out the document the image is very high quality, sharp, etc.
    When I import this image into an Oracle Reports via menu: insert / image, although it appears fine when looking at it in Report Builder on the 'Paper Layout', when I run the report the image in the output PDF has lost quality and when printed out, the white background (which should be white) prints as as a light shade of grey.
    Does anyone know how to stop the loss of quality on the image and how to stop the background of the image printing as light grey ?
    I'm running Report Builder 10.1.2.0.2.
    Many Thanks, Mark

    This document explains how to increase the image resolution when exporting:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30407084-c51d-2b10-1f81-813488350e6f
    But it's for Crystal Enterprise 8.0, do you know if Crystal Reports 11 will work the same way?

  • No longer able to attach .jpg images in Mail...

    I'm having problems attaching .jpg images in Mail. This problem started two or three days ago. I can attach .zip files, but I'm unable to attach .pdf or .jpg files. I have not tried other formats, as these are the two most common formats used.
    Has anyone else experienced this issue?
    Cheers. -m

    There was a discussion posted on this a while back:
    http://discussions.apple.com/thread.jspa?threadID=1545970&start=0&tstart=0
    I get this problem on my PPC, but not my Intel machine. Instead of using Server Admin, best to set this value (maxAttachmentSize) in the /etc/wikid/wikid.conf file. The value in Server Admin will still show '0', but I was still able to attach files up to the size I specified in the wikid.conf file.

  • Files with .png images create huge .pdf's

    I use .png images in PowerPoint presentations and these seem to create huge .pdf files. (...don't have this problem using .jpg images) For example, I have a 48 slide presentation that has a small .png image in the "slide master" so it will show up on every page. The PowerPoint file is 2.3MB, however the .pdf of it is 33.3MB, making it WAY too big to email, which was my objective.
    Any ideas on how to reduce the size of .pdf's which contain .png images?
    ...note that I "compressed" the .png images inside of PowerPoint prior to creating the .pdf, but this made no impact.
    Thanks,
    pm

    >I have a 48 slide presentation that has a small .png image in the "slide
    >master" so it will show up on every page.
    PowerPoint only has to store one instance of the image even thought it is
    displayed on multiple slides. But Acrobat can't do the same, the image has
    to be stored for every page that it appears on, so that would explain the
    larger file size.
    Acrobat is supposed to be able to optimize the storage of common background
    images (at least that's the message I see when I do a "Save as..."), but I
    have yet to see it to work. Maybe it depends on the application the orginal
    file is created in and the PDF conversion method used.
    Adding the image into a PDF file later as a watermark instead may be a way
    to keep the size down (then it really only does store the object once),
    though I believe that watermark images will appear in front of everything
    else on the page (not sure if that's a problem for you, it depends on
    whether any text or objects in the presentation ever appear in front of the
    image).
    What are the dimensions and resolution of the image in PowerPoint? You may
    be able to go as low as 75 dpi and not notice a difference, it depends on
    whether the image contains any areas of high contrast or text.

  • Image Added to PDF FFile via Preview Adds Large, White Border

    ::not sure where to stick a 'Preview' discussion::
    I've downloaded several books as PDF files to add to my iBooks app on my iPhone, and I'm wanting to give them their respective book covers. I open the PDF file in Preview, drag and drop the image to the top of the list to create the cover, but I get an ugly, white border around the image itself. There is no white border on the image file itself, so I have no idea why this border is being created.
    I've noticed smaller image files have a larger border, but the image I'm using is 716x1024. It doesn't matter if I increase the image size to help reduce the white border, it still remains.
    Any advice?

    Edited to add - sorry, my description was slightly wrong.
    If I open a single .JPG in a new Preview, and save it as a .PDF, the dimensions are fine. The issue only occurs if I try to add .JPG's to existing PDF's.
    It also occurs if you use the shell to convert a single JPG image, i.e.
    "/System/Library/Printers/Libraries/./convert" -f /users/me/downloads/cvg06300162.jpg -o /users/me/downloads/cvg06300162.pdf
    - this gives the reduced size image as well.

  • Poor Image quality upon PDF export

    hi,
    issue: images lose quality when viewed in PDFs
    i've searched/read these and other forums for the past few days and have tried just about every suggestion out there in order to get better quality images in my PDFs and nothing works.. it's as if everyone is talking some theory without actually testing/proving what they're saying.
    are pdfs inherently bad at handling raster images?
    i have a few 800x1200 px renders (tiffs/jpgs) that i'd like to include in a PDF.. i'm using A4 landscape orientation because when viewed at full size on a 24" monitor, it's the size i'd like it to be (i'm not concerned with printing this pdf.. monitor only)
    the images when view full size in the pdf are a bit smaller than viewing the original images full size however, the quality is a lot worse.
    honestly, i'll try or retry your suggestions but at this point, i'm more/less looking for an explanation as to why this happens because from what i can tell, it's going to happen no matter what
    gracias

    PeterBreis0807 wrote:
    Not sure what you are expecting.
    well, i'm certainly expecting better quality than what i'm getting..
    The jpg is contrasty and it is lower resolution than you need, but you did say that above. Which means I am not looking at what you are looking at.
    The color space is srgb and the conversion from the tiff would have reduced the quality a little or a lot depending on your settings.
    it doesn't matter if i use the original tiff or the jpg.. for all intents and purposes, let's forget i even have the tiff.. the jpg should look the same in the pdf (imo)
    Did you print to pdf or Export? If you exported, did you use "Best" as your setting.
    i've done all sort of methods.. but yeah, always at highest quality if said method allows such settings..
    It has lost some contrast and is a little blurry. It looks to my eye like the degradation you get from setting the jpeg quality a little low.
    well, no.. it has gone from something that is in focus to something that is out of focus.. if i open the jpg in photoshop and do a 'save as' jpg with the quality set to 3 (with 12 being best), i will get similar results as putting the jpg in a pdf.. (albeit, a different type of quality loss but just as bad)
    you've seen the comparison but just in case someone else wants to look, check here:
    http://homepage.mac.com/jeffhammond/Sites/imgs/origVSpdf.jpg
    that's a screenshot showing the jpg on the right and the pdf output on the left (both viewed in preview)..
    it's unacceptable.. but like i said earlier, i think this is an inherent aspect of pdfs and i'd settle for a decent explanation as to why it happens..
    OSX has some very smart frameworks built in, which do make bitmaps displayed on screen in Cocoa apps look better than they should. Not exactly helpful if you simply want to see it unenhanced.
    but still, if that's the case, why isn't osx doing the same thing to the pdf.. (and also, i highly doubt the actual quality of the image is being shown in the pdf but when i view the jpg, i'm being shown an enhanced view to the point of making an out-of-focus image being an in focus image.
    jeff

  • Convert word document into .JPG image. Possible?

    Hello
    I need to convert a word document into a .JPG image... Anyone who can recommend a mac program that can help, or how word can do it for me?
    Best regards
    Jesper Pedersen

    In Word go to File > Print... > PDF > Save As PDF.Open the resulting file in Preview.
    Choose File > Save As... > Format: JPEG.
    Hope that helps.
    mrtotes

Maybe you are looking for