We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Rotating a PDF Page

Hi

I have a PDF file which seems to be saved with a specific rotation. This is causing us issues when inserting svg into it using anther tool.

I was wondering if you could tell me if there's a way to remove the rotation so that the current rotation of 270 is set as 0, but the page does not actually rotate.

So we essentially we want the current rotation of 270 to equal 0, but not rotate the page.

Does that make sense?





Attachment: Sample_f10f8177.zip

1 Reply

KC Karthikeyan Chandrasekar Syncfusion Team December 19, 2018 08:43 AM UTC

Hi Damien, 
Greetings from Syncfusion support. 
We can get the rotated content from an existing PDF and draw the content in new PDF with the rotation 0 by using PdfTemplate. While using the PdfTemplate, layer collection for an existing PDF will not maintained and the layer content will be preserved in the page graphics.  We have created a sample to achieve your requirement. Please find the sample and output below for your reference. 


 
Regards, 
Karthikeyan 
 


Loader.
Live Chat Icon For mobile
Up arrow icon