IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#19173 - 11/23/05 12:30 PM How do you rotate a paragraph using Press Talk?
Eric Dabols Offline
OL Newbie

Registered: 11/23/05
Posts: 3
I currently have the following code that displays a multiple page PDF and then prints a paragrah on top of the PDF with the print page and record. How do I get this paragraph to rotate +90

set(&pdfPages,pdfpagecount(&pdfPath+trim(@(3,1,75))))
for(&loop, 1, 1,&pdfPages)
showPDF(&pdfPath+trim(@(3,1,75)),&loop,&width,&height)
MoveTo(8.25,10.5)
Define(&Var1,string,inttostr(¤t.printpage) + ':' + inttostr(¤t.datapage))
BeginParagraph(7.75,0.0000,0.0000,'left',0.1667,False)
SetStyleExt(&Style1,6.0000,0,[100],100)
Show(&Var1)
EndParagraph()
showpage()
endfor()
_________________________
Eric V. Dabols
The Garvey Group

Top
#19174 - 11/23/05 05:04 PM Re: How do you rotate a paragraph using Press Talk?
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Eric,

Are you using a PressTalk object? If so, double-click on it, go in "Basic Attributes", and you will see an Angle property. Set it to the angle you want to use, and your object will be rotated.

Regards,
Rapha

Top
#19175 - 11/24/05 09:08 AM Re: How do you rotate a paragraph using Press Talk?
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Also, if you want to rotate only the paragraph, and not the pdf, you can add the SetAngle command before your BeginParagraph. So if you want to set the angle to 90 before the paragraph is created, you can add SetAngle(90) just before BeginParagraph.

Rapha

Top
#19176 - 11/28/05 09:42 AM Re: How do you rotate a paragraph using Press Talk?
Eric Dabols Offline
OL Newbie

Registered: 11/23/05
Posts: 3
Thanks for the Code!
_________________________
Eric V. Dabols
The Garvey Group

Top


Moderator:  cosimo, OL Newsgroup Support