You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Carmen Johnson <ca...@brodnax21c.com> on 2023/01/03 22:03:48 UTC

Identifying crop marks & bleeds

We are a printer and I have an application that uses loads of PDFs from our clients.
I would like to programmatically examine the PDFs to verify that the client has added crop marks & bleed.
I've poked around in the API documentation and I'm guessing that IF there is a Trim Box and the dimensions are larger than the Art box, that be my clue?
What classes would I use to figure this out? What classes contain Trim and Art box methods?

Any recommendations are appreciated...

Carmen Johnson
Sr. Applications Developer
737 Regal Row
Dallas, TX 75247
C. 817.832.8670
O. 214.528.2622

[cid:image001.jpg@01D91F8C.F60E11E0]<http://www.brodnax21c.com/>

Follow us on social media  [cid:image002.png@01D91F8C.F60E11E0] <https://www.facebook.com/brodnax21c>  [cid:image003.png@01D91F8C.F60E11E0] <https://instagram.com/brodnax21c>  [cid:image004.png@01D91F8C.F60E11E0] <https://www.linkedin.com/company/brodnax21c>
Go to link below for all your Promotional product needs!
http://promoplace.com/BrodnaxPromo


Re: Identifying crop marks & bleeds

Posted by Tilman Hausherr <TH...@t-online.de>.
Hi,

The PDPage class gives this information with the getTrimBox() and 
getArtBox() methods. There is also getCropBox() and getBleedBox(). (But 
I don't know if this solves your problem, I only use the cropbox and the 
mediabox, but I'm not a printer)

Tilman

On 03.01.2023 23:03, Carmen Johnson wrote:
>
> We are a printer and I have an application that uses loads of PDFs 
> from our clients.
> I would like to programmatically examine the PDFs to verify that the 
> client has added crop marks & bleed.
>
> I’ve poked around in the API documentation and I’m guessing that IF 
> there is a Trim Box and the dimensions are larger than the Art box, 
> that be my clue?
>
> What classes would I use to figure this out? What classes contain Trim 
> and Art box methods?
>
> Any recommendations are appreciated…
>
> *Carmen Johnson**
> *Sr. Applications Developer*
> *737 Regal Row*
> *Dallas, TX 75247*
> *C. 817.832.8670*
> *O. 214.528.2622**
>
> <http://www.brodnax21c.com/>
>
> /Follow us on social 
> media/<https://www.facebook.com/brodnax21c><https://instagram.com/brodnax21c><https://www.linkedin.com/company/brodnax21c>
>
> /Go to link below for all your Promotional product needs!//
> //http://promoplace.com/BrodnaxPromo/ <http://promoplace.com/BrodnaxPromo>
>