#1 PDF Engine » [Question]worth a cheese - How to rotate page?or paragraph rotated? » 2012-05-09 14:11:15

renato
Replies: 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

#2 PDF Engine » Topic for How-To's » 2012-05-09 14:00:41

renato
Replies: 0

Arnald,

Can you pin a topic for a "how to list" in synopse pdf forum?

tnks

#3 Re: PDF Engine » How to select printer tray source from pdf file (multiples page types) » 2010-09-15 18:04:46

ab wrote:

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.

#4 Re: PDF Engine » How to select printer tray source from pdf file (multiples page types) » 2010-09-14 17:46:37

i found the postscript comands to change the paper:
<</MediaType (capa)   /MediaWeight 90 /MediaColor (white) >> setpagedevice
<</MediaType (corpo)   /MediaWeight 90 /MediaColor (white) >> setpagedevice

#5 PDF Engine » How to select printer tray source from pdf file (multiples page types) » 2010-09-14 17:06:21

renato
Replies: 7

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

Board footer

Powered by FluxBB