PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

Insert rotated text with migradoc
http://forum.pdfsharp.com/viewtopic.php?f=2&t=3879
Page 1 of 1

Author:  BrianTheK [ Wed Nov 28, 2018 5:14 pm ]
Post subject:  Insert rotated text with migradoc

How do I add rotated text to a pdf document? I'm using Migradoc. I'm adding Formated text to a Paragraph. Also, how about rotated images? Should I rotate the image on my own or is there a mechanism for adding it rotated?

Author:  TH-Soft [ Wed Nov 28, 2018 7:24 pm ]
Post subject:  Re: Insert rotated text with migradoc

TextFrames have an Orientation property.
See here:
viewtopic.php?p=6399#p6399

I think you cannot rotate images with MigraDoc.
Are those JPEG images? If so, try to find a way to rotate them with decompressing/compressing them. PDFsharp could be an option, but files will then be slightly larger.

Author:  BrianTheK [ Thu Nov 29, 2018 4:59 am ]
Post subject:  Re: Insert rotated text with migradoc

I found that putting text and images into a TextFrame with Orientation = TextOrientation.Upward on the frame will give me rotated text and images.

Author:  TH-Soft [ Thu Nov 29, 2018 7:51 am ]
Post subject:  Re: Insert rotated text with migradoc

The name "TextOrientation" (not TextFrameOrientation) irritated me. Good to know it rotates everything.
Thanks for the feedback.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/