Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Rasterize on Trimbox OR Cropbox with GhostScript
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Stefano  
View profile  
 More options Feb 1, 4:16 am
Newsgroups: comp.text.pdf
From: Stefano <cappello.stef...@gmail.com>
Date: Wed, 1 Feb 2012 01:16:33 -0800 (PST)
Local: Wed, Feb 1 2012 4:16 am
Subject: Rasterize on Trimbox OR Cropbox with GhostScript
Hi,

Is possible to define an alternative area to rasterize PDF?
Example: All PDF must have a TrimBox but in case the PDF don't have
this area I would like that GhostScript use as "alternative area" the
Cropbox.

Stefano


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ken  
View profile  
 More options Feb 1, 11:51 am
Newsgroups: comp.text.pdf
From: ken <k...@spamcop.net>
Date: Wed, 1 Feb 2012 16:51:38 -0000
Local: Wed, Feb 1 2012 11:51 am
Subject: Re: Rasterize on Trimbox OR Cropbox with GhostScript
In article <c7f88c01-b380-4080-a9d3-bdac97f61781
@w4g2000vbc.googlegroups.com>, cappello.stef...@gmail.com says...

> Is possible to define an alternative area to rasterize PDF?
> Example: All PDF must have a TrimBox but in case the PDF don't have
> this area I would like that GhostScript use as "alternative area" the
> Cropbox.

-dUseCropBox

See /ghostpdl/gs/doc/Use.htm#PDF_switches

                Ken


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefano  
View profile  
 More options Feb 2, 4:11 am
Newsgroups: comp.text.pdf
From: Stefano <cappello.stef...@gmail.com>
Date: Thu, 2 Feb 2012 01:11:15 -0800 (PST)
Local: Thurs, Feb 2 2012 4:11 am
Subject: Re: Rasterize on Trimbox OR Cropbox with GhostScript
On 1 Feb, 17:51, ken <k...@spamcop.net> wrote:

> In article <c7f88c01-b380-4080-a9d3-bdac97f61781
> @w4g2000vbc.googlegroups.com>, cappello.stef...@gmail.com says...

> > Is possible to define an alternative area to rasterize PDF?
> > Example: All PDF must have a TrimBox but in case the PDF don't have
> > this area I would like that GhostScript use as "alternative area" the
> > Cropbox.

> -dUseCropBox

> See /ghostpdl/gs/doc/Use.htm#PDF_switches

>                 Ken

Hi Ken,

thanks for reply but what I mean is to instruct GS to get trim box
area and only if trim box area is not defined use crop area as are for
rasterize the PDF.
Rasterization priority is to TrimBox. If this is missing use CropBox.
Any suggestion?

Stefano


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
SaGS  
View profile  
 More options Feb 2, 5:00 am
Newsgroups: comp.text.pdf
From: SaGS <sags5...@gmail.com>
Date: Thu, 2 Feb 2012 02:00:18 -0800 (PST)
Local: Thurs, Feb 2 2012 5:00 am
Subject: Re: Rasterize on Trimbox OR Cropbox with GhostScript
On Feb 2, 11:11 am, Stefano <cappello.stef...@gmail.com> wrote:

> ...
> what I mean is to instruct GS to get trim box area and only if trim
> box area is not defined use crop area as are for rasterize the PDF.
> ...

My reading of Ghostscript's Resource/Init/pdf_main.ps procedure
get_any_box is that if you specify both -dUseTrimBox and -dUseCropBox
on the command line, then GS will use the TrimBox if it exists, else
will use the CropBox. If none of the two are present, it will default
to the MediaBox.

I haven't tested it right now, and maybe more important the above
precedence is not explicitly stated so it may change in the future. If
that happens, at least now you know where to patch the code to get the
behavior you want :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »