PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Oct 19, 2024 8:25 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Vertikal schreiben
PostPosted: Mon Sep 01, 2008 12:19 pm 
Offline

Joined: Mon Sep 01, 2008 12:13 pm
Posts: 1
Ich hoffe es ist ok, wenn ich mal in Deutsch schreibe (ansonsten übersetze ich später).

Ich möchte mit PDFsharp auf der Y-Achse schreiben, hab das Dokument um 90 Grad gedreht und muss nur noch die Schreibrichtung anpassen.

Für Tipps wäre ich dankbar

PS Ich schreibe in VB.net

_________________
--------------------------
http://www.wintelli.de/


Top
 Profile  
Reply with quote  
 Post subject: Vertikal schreiben
PostPosted: Fri Oct 03, 2008 10:10 am 
Offline

Joined: Tue Feb 20, 2007 1:36 pm
Posts: 8
Du brauchst die Seite nicht vorab drehen. Sichere einfach den XGraphicsState, gehe zum Einfügepunkt, drehe das Koordinatensystem, schreibe den Text und setze den State zurück:

Dim mystate As XGraphicsState = gfx.Save
gfx.TranslateTransform(EinfügepunktX, EinfügepunktY)
gfx.RotateAtTransform(winkel, New XPoint(0, 0))
gfx.DrawString(tmpStr, font, XBrushes.Black, New XPoint(0, 0))
gfx.Restore(mystate)

Gruss
Peter


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group