PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jul 21, 2024 1:33 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Nov 09, 2009 6:03 pm 
Offline

Joined: Mon Nov 09, 2009 6:01 pm
Posts: 1
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


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 10, 2009 11:17 am 
Offline

Joined: Tue Nov 10, 2009 11:07 am
Posts: 4
gfx = XGraphics.FromPdfPage(page);
gfx. rotatesomething thing
then
gfx.DrawImage(oldpage etc)

i know my explaination sucks, but it chould give you the clue


Top
 Profile  
Reply with quote  
PostPosted: Mon Dec 21, 2009 10:24 pm 
Offline

Joined: Mon Dec 21, 2009 10:18 pm
Posts: 1
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.


Top
 Profile  
Reply with quote  
PostPosted: Wed Aug 24, 2011 2:22 pm 
Offline

Joined: Wed Aug 24, 2011 2:15 pm
Posts: 3
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


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 69 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