xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <markus.sticker.e...@zf.com>
Subject PDFPainter
Date Fri, 21 Mar 2014 09:31:42 GMT
Hi,

I want to modify the FOP a little bit for my own use,
because I recognized that the scaling of an images will not
be used if I have it rotated.

So what I did:

In my FO-Tree:
...
                    <fo:block-container reference-orientation="90">
                      <fo:block id="id1078021" space-before.minimum="1em" space-before.optimum="1em"
space-before.maximum="1em" space-after.minimum="1em" space-after.optimum="1em" space-after.maximum="1em">
                        <fo:block id="id1078016">
                          <fo:external-graphic src="url(file:///c:/images/homer.png)" width="100%"
height="auto" content-width="scale-to-fit" content-height="100%"/>
                        </fo:block>
                      </fo:block>
                    </fo:block-container>
...

(Homer is a very very large image.)

Now in the PDFPainter.class I get the viewport and modify the rect.height and .width in the
drawImage method (ok ... this not nicest way )
So what I now need is the information "is that image rotated or not". Is there a easy way
to get this information?

Kind regards
Markus Sticker
Forschung und Entwicklung ZF Konzern/Research and Development ZF Group
Infrastruktur/Infrastructure (DTEP4)
ZF Friedrichshafen AG
88038 Friedrichshafen, Deutschland/Germany
Telefon/Phone  +49 7541 77-7644, Telefax/Fax  +49 7541 77-907644
Markus.Sticker.Epos@zf.com<mailto:Markus.Sticker.Epos@zf.com>

Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio Behr
Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr. Konstantin Sauer,
J├╝rgen Holeksa, Michael Hankel, Wilhelm Rehm, Rolf Lutz
Sitz/Headquarters: Friedrichshafen
Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal court of
Ulm HRB 630206


Mime
View raw message