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 Mark Gibson <ma...@staff.bluematrix.com> on 2022/08/16 22:31:10 UTC
PDF-Images - When scaling embedded PDFs with links, the link position is not moved/scaled in relation to image scaling.
Hi
When using PDF-Images to embed a PDF with links, when scaling the image, the links are not scaled/repositioned according to the image scaling.
I've attached two "fo" files, the image with links to be embedded, and their resultant PDFs.
Wondering if we're missing some magic XSL-FO incantation, or whether this is a bug.
Thanks
Mark
RE: PDF-Images - When scaling embedded PDFs with links, the link position is not moved/scaled in relation to image scaling.
Posted by Mark Gibson <ma...@staff.bluematrix.com>.
Bumping this, in case anyone can help. Otherwise I'll enter a Jira next week.
From: Mark Gibson <ma...@staff.bluematrix.com>
Sent: 16 August 2022 23:31
To: fop-users@xmlgraphics.apache.org
Subject: PDF-Images - When scaling embedded PDFs with links, the link position is not moved/scaled in relation to image scaling.
Hi
When using PDF-Images to embed a PDF with links, when scaling the image, the links are not scaled/repositioned according to the image scaling.
I've attached two "fo" files, the image with links to be embedded, and their resultant PDFs.
Wondering if we're missing some magic XSL-FO incantation, or whether this is a bug.
Thanks
Mark
Re: PDF-Images - When scaling embedded PDFs with links, the link position is not moved/scaled in relation to image scaling.
Posted by David Law <da...@apconsult.de>.
Mark,
it certainly looks very suspicious.
Could it be that some Margins, Borders or Padding are muddying the waters?
Maybe its worth trying...
<fo:block *background-color="#F38222"*>
<fo:external-graphic *background-color="#4F491D"*
src="image1.pdf"
/>
</fo:block>
...and...
<fo:block *background-color="#F38222"*>
<fo:external-graphic *background-color="#4F491D"*
src="image1.pdf"
width="70%"
content-height="scale-down-to-fit"
content-width="scale-down-to-fit"
/>
</fo:block>
...to see how large the areas are?
All the best,
DaveLaw
On 17/08/2022 00:31, Mark Gibson wrote:
>
> Hi
>
> When using PDF-Images to embed a PDF with links, when scaling the
> image, the links are not scaled/repositioned according to the image
> scaling.
>
> I’ve attached two “fo” files, the image with links to be embedded, and
> their resultant PDFs.
>
> Wondering if we’re missing some magic XSL-FO incantation, or whether
> this is a bug.
>
> Thanks
>
> Mark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail:fop-users-help@xmlgraphics.apache.org