You are not logged in.
Pages: 1
Arnald,
i need to print a text rotated or paragraph on X,Y of a page.
Example:
-> Need to print a paragraph on X = 105mm, Y = 148,5mm of a page. But i need to print rotated on 180 degrees.
I try to rotate canvas:
mode := GetGraphicsMode(PDFDocumentGdi.VCLCanvas.Handle);
GetWorldTransform(PDFDocumentGdi.VCLCanvas.Handle, XformOLD);
SetGraphicsMode(PDFDocumentGdi.VCLCanvas.Handle, GM_ADVANCED);
XForm.eM11 := Cos(DegToRad(angle));
XForm.eM12 := Sin(DegToRad(angle));
XForm.eM21 := -Sin(DegToRad(angle));
XForm.eM22 := Cos(DegToRad(angle));
XForm.eDx := PDFPage.PageWidth;
XForm.eDy := PDFPage.PageHeight;
SetWorldTransform(PDFDocumentGdi.VCLCanvas.Handle, Xform);
SetGraphicsMode(PDFDocumentGdi.VCLCanvas.Handle, mode);
The page rotation occurs normally, but the position of the text is not printed on 105 and 148.5.
Can you help me?
tnks
Arnald,
Can you pin a topic for a "how to list" in synopse pdf forum?
tnks
I think this is depending on the printer used...
If there is a generic way of adding such commands, we could try to add these commands.
Would you like to have a way of adding some custom postscript content to the pdf page stream?
Yeah,
its a amazing idea to add commands to pdf page stream.
can it possible to implement in future version? i will make a lots of tests with postscript commands..
im going to adobe foruns search for a generic commands to make this possible.
i found the postscript comands to change the paper:
<</MediaType (capa) /MediaWeight 90 /MediaColor (white) >> setpagedevice
<</MediaType (corpo) /MediaWeight 90 /MediaColor (white) >> setpagedevice
Hi guis,
It is possible to make calls from input trays from printer?
im sending the pdf file directly to printer, but i have two types of paper:
1 - for first page of invoice (put green pages on printer tray 1)
2 - for other pages of invoice (put yellow pages on printer tray 2)
I need now make the file PDF call correctly the papers from input trays 1 and 2.
Example File.pdf
Page one: call paper from tray 1
Page two: call paper from tray 2
Page three: call paper from tray 2
Page four: call paper from tray 2
Page five: call paper from tray 1 (new invoice)
It is possible to implement? or in the future versions?
Gratz..
my email/msn: renato.adm@live.com
Pages: 1