Hi there! As far as I know, the Rotate attribute applies only for pages. What can be done for the actual page contents (also for single objects) is applying the transformation matrix. PdfPainter provides SetTransformationMatrix method for setting it (see also Save and Restore methods). A pretty detailed description of the transformation matrix you will find in the PDF specification which can be freely downloaded from the Adobe website.
-- Regards, Radek Am 20.10.2011 08:43, schrieb FIXED-TERM Uenlue Tolga (BhP/TEF17): > Hello Podofo Users! > How can I rotate a PdfString before I write it into a PDF-File, is > that possible? > I tried it with adding the Keyword "Rotate" into the Dictionary > Object, but the problem > starts here, I'm not able to receive a Dictionary Object ( I guess > thats only natural because > a PdfString Object doesn't contain any Dictionaries, is this correct? ) > I also tried to create a temporary PDF-File which only contains a > String and has a height of > 20 and a width of Stringlength. > That should do the thing because I can get the PdfPage Object after I > load the temporary File > and write the PdfPage ( which contains only the "foobar" String ) as a > PdfXObject into another > PDF File ( and now I can get the Dictionary Object and add the Rotate > Keyword ) : > PdfXObject* testxobj = new PdfXObject( testpage->GetPageSize(), > testpage->GetContents()->GetOwner() ); > painter.DrawXObject(5,5,testxobj); > But it's still not working, I only get a error Message from Adobe > Reader that something isn't correct > with my Document. It shows only the original contents of the Document > but not the Teststring. > What are your suggestions, how should I proceed? > Best regards, > *Tolga* > > > ------------------------------------------------------------------------------ > The demand for IT networking professionals continues to grow, and the > demand for specialized networking skills is growing even more rapidly. > Take a complimentary Learning@Ciosco Self-Assessment and learn > about Cisco certifications, training, and career opportunities. > http://p.sf.net/sfu/cisco-dev2dev > > > _______________________________________________ > Podofo-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/podofo-users ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Ciosco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
