PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Change pdf paper orientation to landscape
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3776
Page 1 of 1

Author:  clement_911 [ Thu Apr 26, 2018 4:05 am ]
Post subject:  Change pdf paper orientation to landscape

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?

Clement

Author:  TH-Soft [ Thu Apr 26, 2018 6:21 am ]
Post subject:  Re: Change pdf paper orientation to landscape

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.

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