Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 485
  • Last Modified:

How to remove invisible parts of an image from PDF

Hi

I have an Indesign document with an image on the page that I have from a linked image file.  Only a part of the linked image is displayed based on a clipping path made in Photoshop.  When I complete the work and export the page to PDF, the whole image is really there, just not visible.  How can I crop the invisible parts of the image without destroying the original linked file?  If it is possible, should I process the file before / on export, or can I do a clean up in Acrobat after.  I have tried optimising but that doesnt remove the invisible parts of the images and I can see that about 90-95% of the file space is taken up with image data. Using CS3. Any suggestions much appreciated.

Thanks

ps. There doesnt appear to be a an Indesign category so tagging with associated applications.
0
space_time
Asked:
space_time
  • 6
  • 5
  • 2
  • +1
2 Solutions
 
captainCommented:
In Acrobat Pro, go to Tools>Preflight>PDF Fixups and select Flatten Transparency (High Resolution)

This should do the job.

capt.
0
 
space_timeAuthor Commented:
I just tried this and also tried on a copy of CS6 although the commmand is in a slightly different UI location.  No luck unfortunately.  The file size came down a little, but I can still click on an image and copy-image, then paste it somewhere else, revealing the full image and not just the cutout / visible portion.
0
 
Dan CraciunIT ConsultantCommented:
Can you try using the [Press quality] preset when exporting, but selecting compatibility with PDF 1.3?
In theory, this should flatten all your images and keep only the visible parts.

A much longer explanation here: http://helpx.adobe.com/indesign/using/flattening-transparent-artwork.html

HTH,
Dan
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
captainCommented:
Hm, this is strange I can do this here and it works fine.

I take there is no option to see the PDF in question?

capt.
0
 
jmpg_70Commented:
Here is a bunch of steps to run through to resolve this problem. Have you define the clipping path correctly in Indesign?

In  Indesign you have to apply the clipping path under the object menu>clipping path> apply the correctly named PS path.

Have you tried making and defining the clipping path in the paths menu (palette pop-out) and saved the file as a TIF or a PShop EPS?

In Photoshop have you closed the clipping path so it has no gaps between points.

Can you use an image mask/alpha channel mask instead to test if things are working correctly.

Have you viewed the indesign file with over print preview on to see if the file works properly.

If you are using CS3 do you have access to Acrobat distiller? Are you able to print a postscript file and the Postscript.

Are you using spot colour on the page you have a the placed file on, is the image over spot colour. If so convert the spot colour to process.

Can you upgrade as CS 3 still had issue with transparency that were resolved until CS 4 versions of the Creative Suite
0
 
space_timeAuthor Commented:
Sorry for the delay in response.  Please note that I am a novice at DTP but have to make a lot of documents recently for my work.  I have been trying the above suggestions, but the processing doesnt seems to get the result I am after.  I have created an example of the problem and an example of a workaround/solution (although not keen on solution as involves more work and storage.)

First file - problem (test jpg.pdf) - Open pdf. Click image. Copy image. Paste image in to paint. Behold lots of extra data.
Second file - solved (test psd.pdf) - Copy and paste image etc. The result is just the visible parts that is in the pdf.  

Was able to do this by saving the original image file as a psd.  Created a copy layer in photoshop, inverted the cliping path and deleted everything else - note: I do not want to permanently destroy any content from the image, but this was stored in the first layer.  In indesign I chose to only make visible the copied layer where I had deleted the parts of the image i didnt want to see.

End result:  Using a lot more space on image storage. Using less space on indeisgn and pdf file.  Overall a lot more space is required but the PDF is tidier.
test-jpg.pdf
test-psd.pdf
0
 
Dan CraciunIT ConsultantCommented:
Weird. I cannot replicate your problem.

In the attached file, using any PDF presets, the image is trimmed to the bounding box.

Can you post a sample indesign file?
sterge.pdf
sterge.doc
0
 
space_timeAuthor Commented:
I couldnt open the .doc file but I could the PDF.  I copied the image and saved it as a jpg and attached here so you can see what I mean.  There was obviously more to the image. Although it was hidden in the PDF, it was still accessible to a viewer, still using up space - all sorts. My goal is to remove the hidden from the PDF.
full-image-from-pdf.jpg
0
 
Dan CraciunIT ConsultantCommented:
Yes, the image will always be trimmed to the bounding box, not the clipping path. The image in the original document is much larger, but only the part contained inside the bounding box was retained.

You could not open the doc file because it's an Indesign file. Rename it with an indd extension, like the comment says.
Please note that it's an CS6 indd.
0
 
space_timeAuthor Commented:
So is it not possible to remove content outside the clipping but still within the bounding box.  How about an action or script something along this logic: Save image as PSD > Duplicate layer > Inverse clipping path > Delete content outside path > Save layer > re-insert in to indesign - in exact same location?
0
 
Dan CraciunIT ConsultantCommented:
You can do that directly with the pdf: open the pdf in illustrator, then select the image, go to Transparency and change the mode from Normal to Darken, then go to Object->Flatten Transparency, move the slider from Raster/Vector all the way to Raster (0), check Preserve Alpha Transparency and click OK. The resulting image will have everything outside the clipping path removed.
After that, just save your optimized pdf.
Flatten-Transparency.png
0
 
space_timeAuthor Commented:
I followed these last steps and it does work.  There are therefore 2 ways I now know of to hide invisible portions of the image from the PDF.  2 questions then: firstly, are there any advantages of 1 method over the other and secondly, if I have a document 200 pages long with 200+ images, how can I automate the process so I dont have to manually check each image?
0
 
Dan CraciunIT ConsultantCommented:
All Adobe products support scripting using JavaScript or VBScript.
But I'm not familiar with the syntax, so unless someone from this thread will say he wants to try, your best bet is to post the automation as a new question.
0
 
space_timeAuthor Commented:
Have pointed to the 2 methods that can achieve the result requested by the question. Using Illustrator or PSD files with layers.  PSD is probably slightly longer winded but a the solution I have started to use in practice.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 6
  • 5
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now