Question Details

avatar
Welcome to the Acrobat Answers site. You're on your way! It won't take you many more points to reach the next level: Participant. And as you accumulate more points, you're also building your reputation with the community and with AcrobatUsers.com.

How do I crop a PDF using the TrimBox data?

Dear All,

I have a large PDF file and I use Adobe Acrobat X Pro. The document comes straight from the publisher, so it has its TrimBox and BleedBox defined. The catch is that the cropping dimensions differ from page to page.

Is it possible within Adobe Acrobat X Pro to define a batch operation so that all the pages will be cropped automagically to the correct size (as is defined with the TrimBox settings per page)? I understand how to define a CropBox, but if I use those settings on the whole document (or even a folder filled with documents), all pages will be cropped with the same, fixed dimensions (which is not what we need).

Any ideas?

Kind greetings,

Wim


Wim Deprez 735 days ago


Voted Best Answer

avatar
<p>Congratulations! The Acrobat User Community selection team has approved your status as Expert in the Acrobat User Community. We appreciate all your past contributions and hope you will continue to support the community by answering questions and participating in the Acrobat Answers Q&A program as you've done in the past.</p>

<p>As an expert, you will get a badge to display on your profile with the level EXPERT next to your name and you have become eligible to be nominated to the Adobe Community Professional Program.</p>

<p>After reviewing the Adobe Community Professional Program information at https://www.adobe.com/communities/professionals/, please let us know if you are interested.</p>

<p>Someone from the selection team will contact you soon regarding the community professional program. Keep up the good work!</p>

<p>Regards,</p>

<p>The Acrobat User Community Team</p>


<p>**** Disclosure Requirements for Endorsements Received by Third Parties  ****</p>

<p>If you endorse or refer people to the Acrobat User Community in any venue,  it is our responsibility to ensure that you are aware of required compliance with the <a href="http://ftc.gov/os/2009/10/091005revisedendorsementguides.pdf">FTC’s Guidelines</a>. Both you and Adobe can be held liable under federal law for making unsubstantiated claims and for not disclosing your relationship with Adobe. In particular:</p>

<ol>
<li>Always disclose if you have received any type of incentive – free products, promotional items, travel, gifts, payment, and so on from Adobe. The disclosure must be on the same page as the endorsement.</li>
<li>Be truthful. Endorsements should not be misleading. Never make unsubstantiated or exaggerated claims about the benefits of Adobe products or programs. Any statements or endorsements about an Adobe product must be based on upon your actual experience.</li>
</ol>

Thank you again for your support of Adobe and the Acrobat User Community</p>

This script will set the crop box of each page in a document to be the same as the trim box. You can use it in an Action to apply it to multiple files:

for (var p=0; p<this.numPages; p++) {
this.setPageBoxes("Crop", p, p, this.getPageBox("Trim", p));
}

-------------------------------------
Visit my custom-made PDF scripts website: http://try67.blogspot.com
Contact me personally: try6767@gmail.com


By Gilad D (try67) answered 735 days ago  |   Comments (1)  |  New Comment

avatar
Welcome to the Acrobat Answers site. You're on your way! It won't take you many more points to reach the next level: Participant. And as you accumulate more points, you're also building your reputation with the community and with AcrobatUsers.com.

Dear Gilad,

thank you very much, this does exactly what I needed!

For people that are not familiar with Acrobat Pro, what I did was go to "Tools" and click on "Action Wizard". Create a new action, choose in "More Tools" a "Execute JavaScript". Click on "Options" of that JavaScript and paste Gilad's code. Run it and voilà!

Thank you!

Wim Deprez Commented 733 days ago  |   Report


avatar

  |   Report
Was this answer helpful?  
1
0



Other Questions Needing Answers


Field Format

Asked by Joel Browne · 2 answers