ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* PDF bounding box problem?
@ 2005-02-09 16:34 cormullion
  2005-02-09 16:41 ` Matthias Weber
  2005-02-09 17:20 ` Hans Hagen
  0 siblings, 2 replies; 7+ messages in thread
From: cormullion @ 2005-02-09 16:34 UTC (permalink / raw)


I’m trying to place a PDF created by Adobe Illustrator 10 using \externalfigure. But it’s coming in with loads of white space around it.

Although I’m new to ConTeXt, this reminds me of the old problem where there are different types of ‘box’ specified in the PDF file: one possibly specifying a paper size, others specifying perhaps the extent of the marks described within. The PDF file contains these ‘box’ lines:

> /MediaBox [ 0.5 -0.5 612.5 791.5 ] 
> /ArtBox [ 206.97998 316.0459 402.12988 477.66016 ] 
> %%BoundingBox: 206 316 403 478
> %%HiResBoundingBox: 206.98 316.0459 402.1299 477.6602
> %AI3_TemplateBox: 306.5 395.5 306.5 395.5
> %AI3_TileBox: 30 35 582 761
> %%BoundingBox: 206 316 403 478
> %%HiResBoundingBox: 206.98 316.0459 402.1299 477.6602
> %%BoundingBox: 206 316 403 478
> %%HiResBoundingBox: 206.98 316.0459 402.1299 477.6602
> %AI3_TemplateBox: 306.5 395.5 306.5 395.5
> %AI3_TileBox: 30 35 582 761
> /FontBBox [ -167 -250 1006 939 ] 
> /FontBBox [ -222 -250 1006 922 ] 

To my untutored eye it looks like the MediaBox is being used - at least, the graphic takes up  an area about Letter size.  Is there some setting I’ve missed that lets me get the bounds of the graphics rather than the file?

thanks!

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PDF bounding box problem?
  2005-02-09 16:34 PDF bounding box problem? cormullion
@ 2005-02-09 16:41 ` Matthias Weber
  2005-02-09 17:20 ` Hans Hagen
  1 sibling, 0 replies; 7+ messages in thread
From: Matthias Weber @ 2005-02-09 16:41 UTC (permalink / raw)


I usually save the graphics in an Illustrator document which has the 
dimensions and margins I want.

I don't know another way --

Matthias
On Feb 9, 2005, at 11:34 AM, cormullion wrote:

> I’m trying to place a PDF created by Adobe Illustrator 10 using 
> \externalfigure. But it’s coming in with loads of white space around 
> it.
>
> Although I’m new to ConTeXt, this reminds me of the old problem where 
> there are different types of ‘box’ specified in the PDF file: one 
> possibly specifying a paper size, others specifying perhaps the extent 
> of the marks described within. The PDF file contains these ‘box’ 
> lines:
>
>> /MediaBox [ 0.5 -0.5 612.5 791.5 ]
>> /ArtBox [ 206.97998 316.0459 402.12988 477.66016 ]
>> %%BoundingBox: 206 316 403 478
>> %%HiResBoundingBox: 206.98 316.0459 402.1299 477.6602
>> %AI3_TemplateBox: 306.5 395.5 306.5 395.5
>> %AI3_TileBox: 30 35 582 761
>> %%BoundingBox: 206 316 403 478
>> %%HiResBoundingBox: 206.98 316.0459 402.1299 477.6602
>> %%BoundingBox: 206 316 403 478
>> %%HiResBoundingBox: 206.98 316.0459 402.1299 477.6602
>> %AI3_TemplateBox: 306.5 395.5 306.5 395.5
>> %AI3_TileBox: 30 35 582 761
>> /FontBBox [ -167 -250 1006 939 ]
>> /FontBBox [ -222 -250 1006 922 ]
>
> To my untutored eye it looks like the MediaBox is being used - at 
> least, the graphic takes up  an area about Letter size.  Is there some 
> setting I’ve missed that lets me get the bounds of the graphics rather 
> than the file?
>
> thanks!
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PDF bounding box problem?
  2005-02-09 16:34 PDF bounding box problem? cormullion
  2005-02-09 16:41 ` Matthias Weber
@ 2005-02-09 17:20 ` Hans Hagen
  2005-02-09 22:51   ` cormullion
  1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2005-02-09 17:20 UTC (permalink / raw)


cormullion wrote:
> I’m trying to place a PDF created by Adobe Illustrator 10 using \externalfigure. But it’s coming in with loads of white space around it.
> 
> Although I’m new to ConTeXt, this reminds me of the old problem where there are different types of ‘box’ specified in the PDF file: one possibly specifying a paper size, others specifying perhaps the extent of the marks described within. The PDF file contains these ‘box’ lines:
> 
> 
>>/MediaBox [ 0.5 -0.5 612.5 791.5 ] 
>>/ArtBox [ 206.97998 316.0459 402.12988 477.66016 ] 
>>%%BoundingBox: 206 316 403 478
>>%%HiResBoundingBox: 206.98 316.0459 402.1299 477.6602
>>%AI3_TemplateBox: 306.5 395.5 306.5 395.5
>>%AI3_TileBox: 30 35 582 761
>>%%BoundingBox: 206 316 403 478
>>%%HiResBoundingBox: 206.98 316.0459 402.1299 477.6602
>>%%BoundingBox: 206 316 403 478
>>%%HiResBoundingBox: 206.98 316.0459 402.1299 477.6602
>>%AI3_TemplateBox: 306.5 395.5 306.5 395.5
>>%AI3_TileBox: 30 35 582 761
>>/FontBBox [ -167 -250 1006 939 ] 
>>/FontBBox [ -222 -250 1006 922 ] 
> 
> 
> To my untutored eye it looks like the MediaBox is being used - at least, the graphic takes up  an area about Letter size.  Is there some setting I’ve missed that lets me get the bounds of the graphics rather than the file?

\externalfigure[whatever.pdf][width=10cm,size=artbox]

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PDF bounding box problem?
  2005-02-09 17:20 ` Hans Hagen
@ 2005-02-09 22:51   ` cormullion
  2005-02-10  9:10     ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: cormullion @ 2005-02-09 22:51 UTC (permalink / raw)


Hans Hagen <pragma@wxs.nl> said on 2005-02-09, 18:20 (+0100 GMT):

>> To my untutored eye it looks like the MediaBox is being
>> used - at least, the graphic takes up  an area about
>> Letter size.  Is there  some setting I’ve missed that
>> lets me get the bounds of the graphics rather than the
>> file?
> 
> \externalfigure[whatever.pdf][width=10cm,size=artbox]

Great! I didn’t spot the artbox option...

thanks

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PDF bounding box problem?
  2005-02-09 22:51   ` cormullion
@ 2005-02-10  9:10     ` Hans Hagen
  2005-02-10  9:29       ` Martin Kolařík
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2005-02-10  9:10 UTC (permalink / raw)


cormullion wrote:
> Hans Hagen <pragma@wxs.nl> said on 2005-02-09, 18:20 (+0100 GMT):
> 
> 
>>>To my untutored eye it looks like the MediaBox is being
>>>used - at least, the graphic takes up  an area about
>>>Letter size.  Is there  some setting I’ve missed that
>>>lets me get the bounds of the graphics rather than the
>>>file?
>>
>>\externalfigure[whatever.pdf][width=10cm,size=artbox]
> 
> 
> Great! I didn’t spot the artbox option...

it's a rather new option, because pdftex only supports it in later versions

Hans

ps. be aware of the fact that sometimes those boxes are wrong; has to do with 
illustrator defaults and such (there is a technote on that on our site)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: PDF bounding box problem?
  2005-02-10  9:10     ` Hans Hagen
@ 2005-02-10  9:29       ` Martin Kolařík
  2005-02-10 16:20         ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Kolařík @ 2005-02-10  9:29 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 2189 bytes --]

Hi all,

I have problem with paragraph background in columnset environment:

\definetextbackground
  [TXBG]
  [frame=no,offset=0.25em,location=paragraph]

\definecolumnset[main][n=2]

\startcolumnset[main]
...
\starttextbackground[TXBG]
  \typebuffer[BUFFER]
\stoptextbackground
...
\stopcolumnset

Using the background in left column (as the text flows) causes shifting
whole column down }(including both text and properly placed background).

Sorry, I have no minimal example now, as the source is XML. But the mapping
macros lead into the code described above.

Are there some problems with backs in columnsets?

Thank you,

Martin

-----Original Message-----
From: ntg-context-bounces@ntg.nl [mailto:ntg-context-bounces@ntg.nl]On
Behalf Of Hans Hagen
Sent: Thursday, February 10, 2005 10:11 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] PDF bounding box problem?


cormullion wrote:
> Hans Hagen <pragma@wxs.nl> said on 2005-02-09, 18:20 (+0100 GMT):
> 
> 
>>>To my untutored eye it looks like the MediaBox is being
>>>used - at least, the graphic takes up  an area about
>>>Letter size.  Is there  some setting I’ve missed that
>>>lets me get the bounds of the graphics rather than the
>>>file?
>>
>>\externalfigure[whatever.pdf][width=10cm,size=artbox]
> 
> 
> Great! I didn’t spot the artbox option...

it's a rather new option, because pdftex only supports it in later versions

Hans

ps. be aware of the fact that sometimes those boxes are wrong; has to do
with 
illustrator defaults and such (there is a technote on that on our site)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 2708 bytes --]

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PDF bounding box problem?
  2005-02-10  9:29       ` Martin Kolařík
@ 2005-02-10 16:20         ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2005-02-10 16:20 UTC (permalink / raw)


Martin Kolařík wrote:

> Using the background in left column (as the text flows) causes shifting
> whole column down }(including both text and properly placed background).
> 
> Sorry, I have no minimal example now, as the source is XML. But the mapping
> macros lead into the code described above.

maybe add some \ignorespaces to your xml mappin gcode helps; otherwise, i need 
an example

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-02-10 16:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-09 16:34 PDF bounding box problem? cormullion
2005-02-09 16:41 ` Matthias Weber
2005-02-09 17:20 ` Hans Hagen
2005-02-09 22:51   ` cormullion
2005-02-10  9:10     ` Hans Hagen
2005-02-10  9:29       ` Martin Kolařík
2005-02-10 16:20         ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).