You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Jason R Briggs <ja...@rhe.co.nz> on 2006/03/08 22:40:55 UTC
image sizing issue.
Hi All
Hoping someone can shed some light on an image sizing problem I'm having
with the FO below.
I'm setting the external graphic content-width to 16cm, but when the pdf
is printed it comes out at 15.3cm. No matter what width I specify, the
actual printed size is always about 95.6% smaller.
I'm sure I've missed something, somewhere -- some inherited attribute
that I need to take into account for the size to be accurate.
Any ideas?
Thanks,
Jason
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:svg="http://www.w3.org/2000/svg">
<fo:layout-master-set>
<fo:simple-page-master page-width="21cm" page-height="29.7cm"
margin="15mm" master-name="A4">
<fo:region-body margin-top="0cm"/>
<fo:region-after/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="A4" font-family="Arial"
font-size="12pt">
<fo:flow flow-name="xsl-region-body">
<fo:block keep-together.within-page="always"
padding-after="8mm">
<fo:block padding-after="8mm" text-align="center"
keep-with-next.within-page="always">
<fo:external-graphic
src="file:///tmp/generated/circle3.jpg" padding="0mm" margin="0mm"
border="0mm" content-width="16cm"/>
</fo:block>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: image sizing issue.
Posted by Jason R Briggs <ja...@rhe.co.nz>.
Thank you! That was it. The printer settings in adobe were causing the
problem.
J
Manuel Mall wrote:
>On Thursday 09 March 2006 06:27, Jason R Briggs wrote:
>
>
>>Sorry. using svn trunk.
>>
>>I've tried explicitly setting the width as well, but it made no
>>difference. Removing the margin on simple-page-master also makes no
>>difference (plus I was already setting margin on the graphic element
>>as well, so that should override anyway....?)
>>
>>
>>
>
>Have you checked that your print settings are not containing any
>scaling, e.g. "scaled to fit", "Fit to page" or similar?
>
>Manuel
>
>
>
>>J
>>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: image sizing issue.
Posted by Manuel Mall <mm...@arcus.com.au>.
On Thursday 09 March 2006 06:27, Jason R Briggs wrote:
> Sorry. using svn trunk.
>
> I've tried explicitly setting the width as well, but it made no
> difference. Removing the margin on simple-page-master also makes no
> difference (plus I was already setting margin on the graphic element
> as well, so that should override anyway....?)
>
Have you checked that your print settings are not containing any
scaling, e.g. "scaled to fit", "Fit to page" or similar?
Manuel
> J
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: image sizing issue.
Posted by Jason R Briggs <ja...@rhe.co.nz>.
Sorry. using svn trunk.
I've tried explicitly setting the width as well, but it made no
difference. Removing the margin on simple-page-master also makes no
difference (plus I was already setting margin on the graphic element as
well, so that should override anyway....?)
J
Clay Leeds wrote:
> On Mar 8, 2006, at 1:40 PM, Jason R Briggs wrote:
>
>> Hi All
>>
>> Hoping someone can shed some light on an image sizing problem I'm
>> having with the FO below.
>> I'm setting the external graphic content-width to 16cm, but when the
>> pdf is printed it comes out at 15.3cm. No matter what width I
>> specify, the actual printed size is always about 95.6% smaller.
>>
>> I'm sure I've missed something, somewhere -- some inherited
>> attribute that I need to take into account for the size to be accurate.
>>
>> Any ideas?
>>
>> Thanks,
>> Jason
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <fo:root xmlns:xlink="http://www.w3.org/1999/xlink"
>> xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fo="http://
>> www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
>> <fo:layout-master-set>
>> <fo:simple-page-master page-width="21cm" page- height="29.7cm"
>> margin="15mm" master-name="A4">
>
>
> Could it be related to the margin set above? BTW, you didn't specify
> the version, and I believe the 'content-width' and 'content-height'
> attributes are not implemented in fop-0.20.5 (I don't recall whether
> or not they're implemented for 0.91beta).
>
> Clay Leeds
> webmaestro@mac.com
>
> My religion is simple. My religion is kindness.
> -- HH Dalai Lama of Tibet
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: image sizing issue.
Posted by Clay Leeds <we...@mac.com>.
On Mar 8, 2006, at 1:40 PM, Jason R Briggs wrote:
> Hi All
>
> Hoping someone can shed some light on an image sizing problem I'm
> having with the FO below.
> I'm setting the external graphic content-width to 16cm, but when
> the pdf is printed it comes out at 15.3cm. No matter what width I
> specify, the actual printed size is always about 95.6% smaller.
>
> I'm sure I've missed something, somewhere -- some inherited
> attribute that I need to take into account for the size to be
> accurate.
>
> Any ideas?
>
> Thanks,
> Jason
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <fo:root xmlns:xlink="http://www.w3.org/1999/xlink"
> xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fo="http://
> www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
> <fo:layout-master-set>
> <fo:simple-page-master page-width="21cm" page-
> height="29.7cm" margin="15mm" master-name="A4">
Could it be related to the margin set above? BTW, you didn't specify
the version, and I believe the 'content-width' and 'content-height'
attributes are not implemented in fop-0.20.5 (I don't recall whether
or not they're implemented for 0.91beta).
Clay Leeds
webmaestro@mac.com
My religion is simple. My religion is kindness.
-- HH Dalai Lama of Tibet
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org