Hello,
my problem is that I have the following content stream from a pdf made with
acrobat 7.0:
....
q
409.583 135.95 49.462 29.57 re
W
n
0 0 0 0 k
/GS1 gs
410.915 164.79 45.6 -27.18 re
f
q
45.6600037 0 0 27.2400055 -52.1353149 7.5997314 cm
10.141 4.772 1 1 re
W
n
q
0.859 0.851 0.788 1 k
1 0 0 1 10.1406027 4.7716582 cm
/Im0 Do
Q ....
My program reads the content and remakes the pdf (more or less) from the
content using Itext. I have the image file that represents Im0 image, and I
try to add this image to my out pdf.
I am using PdfContentByte.setliteral when I find one transformation matrix
like 45.6600037 0 0 27.2400055 -52.1353149 7.5997314 cm or 1 0 0 1
10.1406027 4.7716582 cm (I think I also could use PdfContentByte.concatCTM)
. When I try to add the Image using PdfContentByte.addImage(Image, float
a,floatb,float c, float d, float e,float f) I don't know what a,b,c,d,e,f
should be ...
if I use 1 0 0 1 10.1406027 4.7716582 as a b c d e f the image doesn't
appear. My question is, with the method addImage the matrix is concatenated
or I have to multiply 45.6600037 0 0 27.2400055 -52.1353149 7.5997314 and 1
0 0 1 10.1406027 4.7716582 matrix ? but I concatenated 1 0 0 1 10.1406027
4.7716582 using setLiteral, isn't it ?
Probably I don't understand this matter because I get it all completely
wrong ... If anyone could tell which is my problem I would be very grateful
=)
Thanks
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php