Landscape vs. portrait

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Merger for COM/ActiveX (v3)  /  Landscape vs. portrait

DynamicPDF Merger for COM/ActiveX (v3) Forum

 Sep 13 2006 5:19 AM
Hello,
I have one problem I can't solve it. I opened landscape PDF document and I tried to add label. But direction of label is like to portrait (turned to 90 degrees). How can I change coordinates of page or direction of label?

Thanks for answer
Pavel Zaklasnik

 Sep 13 2006 9:39 AM
Posted by a ceTe Software moderator
Hello Pavel,

It seems the PDF has rotate property in them. Basically what is happening is the PDF is getting written out from bottom to top and then it is all getting rotated 90 degrees (to appear in portrait). This is a very uncommon way to create PDFs and our product will always draw out the page elements in this way. Our product draws out the page elements left to right and then when the entire PDF gets rotated 90 degrees it rotates the page elements as well.

To compensate for this you will need to readjust the Y coordinates, switch the height and width and then Rotate each Label -90 degrees.  This will then line the text up with the direction of the PDF.

Thanks,
ceTe Software Support Team
 Sep 14 2006 5:58 AM
Hello,

thanks for answer. I tried your operations. I readjusted x and y coordinates (x is longer side, y is shorter side). But i didn't understand, how can I rotate each label. Do you mean rotate each label by DynamicPDF? But I didn't find in manual any function which could do that ... Is any function for rotate each label?

Thanks for answer
Pavel
 Sep 14 2006 8:26 AM
Posted by a ceTe Software moderator
Hello Pavel,

Yes, you can rotate the label by setting the "Angle" property of the label page element to the desired angle value. Following is the sample code to rotate the label by 45 degrees angle.

Dim MyLabel
Set MyLabel = MyPage.AddLabel("CeTe Software", 20, 50, 150, 30)
MyLabel.Angle = 45

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 6:05 AM.