Page 1 of 1

Rotating PDF less Quality

Posted: Mon Sep 09, 2024 6:40 pm
by GHWels
when i am rotating an Image (PDF) the image looses quality.
what can I do?

thank you GH

Re: Rotating PDF less Quality

Posted: Mon Sep 09, 2024 7:40 pm
by Alex
Hello,

I think you have quality loss because you are rendering PDF page and rotating rendered image, i.e. you do "raster rotation" of PDF page.

If you want to rotate content of PDF page without content rasterization, you can go by several ways:
1. PdfPage.RotateContentOrthogonaly method (https://www.vintasoft.com/docs/vsimagin ... onaly.html)
2. PdfPageRotateOrthogonallyCommand class (https://www.vintasoft.com/docs/vsimagin ... mmand.html)
3. PdfRotateCommand class (https://www.vintasoft.com/docs/vsimagin ... mmand.html)

Best regards, Alexander

Re: Rotating PDF less Quality

Posted: Tue Sep 10, 2024 9:09 pm
by GHWels
Thank your for your fast answer

I loaded the image to your Vintasoft.Imaging.UI.AnnotionViewer
and want to rotate the image with annotations inside the viewer?

GH

Re: Rotating PDF less Quality

Posted: Thu Sep 12, 2024 11:42 am
by Alex
Hello,
I loaded the image to your Vintasoft.Imaging.UI.AnnotionViewer and want to rotate the image with annotations inside the viewer?
In this case you need to use PdfRotateCommand class.

Best regards, Alexander