PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon May 20, 2019 4:41 am

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
PostPosted: Thu Apr 26, 2018 4:05 am 

Joined: Thu Apr 26, 2018 4:00 am
Posts: 1
Hi there,

Thanks for a cool library!

I am downloading a pdf file from the Google Drive API to get a Google Sheet file as a pdf.
The Google drive always returns the PDF in portrait mode.

Is it possible to use PDFSharp to convert the pdf file into a landscape mode?
The main problem is that the text itself must not be rotated, and it must also resize to fill in the new page width and arrange the new pages based on the new page height.

Is this even possible?


Reply with quote  
PostPosted: Thu Apr 26, 2018 6:21 am 
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 467
Location: CCAA
clement_911 wrote:
Is this even possible?
The Two Pages on One sample does such a job.

PDFsharp was not built to extract text. You need a lot extra code to extract the text and let it float into a new layout. But it is possible.

Best regards
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)

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 5 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