PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Rotate a single page in a PDF from port to landscape? https://forum.pdfsharp.net/viewtopic.php?f=2&t=932 |
Page 1 of 1 |
Author: | cjones [ Mon Nov 09, 2009 6:03 pm ] |
Post subject: | Rotate a single page in a PDF from port to landscape? |
Hi all, I've been asked to find a way of programatically changing a single page in a PDF file we generate from reporting services from portrait mode into landscape. I've had a quick go using PDFSharp and have managed to set the individual page to landscape which works, or indeed set page.rotate=90 which again rotates, but of course both options always leave the actual text/content of the page in portrait mode. Is there any way at all to scale the content of the page to the new orientation? Many thanks // Carl |
Author: | arrangemonk [ Tue Nov 10, 2009 11:17 am ] |
Post subject: | Re: Rotate a single page in a PDF from port to landscape? |
gfx = XGraphics.FromPdfPage(page); gfx. rotatesomething thing then gfx.DrawImage(oldpage etc) i know my explaination sucks, but it chould give you the clue |
Author: | gsadamastula [ Mon Dec 21, 2009 10:24 pm ] |
Post subject: | Re: Rotate a single page in a PDF from port to landscape? |
I have the same issue. I am able to change the page orientation from Portrait to Landscape but the contents not rotated causing some of the text to be truncated. Please advice. |
Author: | dtrainSA [ Wed Aug 24, 2011 2:22 pm ] |
Post subject: | Re: Rotate a single page in a PDF from port to landscape? |
gsadamastula, I'm sure you've found a solution by now however, for anyone reading this thread I wanted to refer them to this thread for a solution: http://forum.pdfsharp.net/viewtopic.php?f=2&t=982 |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |