Print Page | Close Window

Unexpected rotation when DrawCapturedPage

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3677
Printed Date: 20 Apr 24 at 6:24AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Unexpected rotation when DrawCapturedPage
Posted By: sko
Subject: Unexpected rotation when DrawCapturedPage
Date Posted: 13 Feb 19 at 7:18AM
Hi,

i create PDF/A documents and there is a pdf file, which rotate from portrait to landscape when i DrawCapturedPage.

The page is always portrait, but the drawed captured page is strethed to landscape in this portrait mainpage!

If i look this PDF in Acrobat, all is fine, it is shown portrait..
I found in this file with Notepad++ following mediabox:

<</Contents 8 0 R/CropBox [ 0 0 842 596 ]/MediaBox [ 0 0 842 596 ]/Parent 1 0 R/Resources 7 0 R/Rotate 90/Type /Page>>

So Acrobat see width=842 and height=596 and also 90° rotation, it shows correctly, but when i DrawCapturedPage it is 90° rotated!

What can i do?
I use Debenu V1312

Ciao
Stefan





Replies:
Posted By: Ingo
Date Posted: 13 Feb 19 at 7:39AM
Hi Stefan,

a NormalizePage will fix your issue:
https://www.debenu.com/docs/pdf_library_reference/NormalizePage.php
https://www.debenu.com/kb/use-normalizepage-resolve-issues-adding-text-pages-pdf-files/

Cheers and welcome here,
Ingo



-------------
Cheers,
Ingo



Posted By: sko
Date Posted: 13 Feb 19 at 8:16AM
Hi Ingo,

thank you very much, it is so simple :-)))

Now it works fine!

Ciao
Stefan


Posted By: Ingo
Date Posted: 13 Feb 19 at 8:22PM
using the rotation option means "rotate only when displaying".
This results in unexpected experiences when working on the pdf.
NormalizePage makes "what you see is what you get" with the pdf and as a result the settings inside matching to the behavior outside while showing.



-------------
Cheers,
Ingo




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk