Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Formfields on landscape paper |
Post Reply
|
| Author | |
conner
Beginner
Joined: 16 Oct 09 Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
Topic: Formfields on landscape paperPosted: 18 Nov 09 at 1:13PM |
|
Hi, I have a problem with form fields on rotated pages. Whenever the page is vertical (0 or 180 degrees rotated) the form fields boundaries returned by GetFormFieldBound are correct (I draw a colored rectangle on top of the formfields to verify), but when using landscape they are all misplaced.
Any suggestions why this happens? The pages have margins? Noticed that PageWidth seems to return the Height of the document when rotated 90 degrees, but didnt do the trick.
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 Nov 09 at 3:33PM |
|
Hi!
That's normal if the page was created as portrait and later rotated to landscape. You can check this in the pdf-source directly searching for "rotated". The values are in this case only on other parameters (it's only changed... so no real problem but you should know it ;-) I've told this already to Rowan (Debenu) and i think it will be changed soon. Cheers, Ingo |
|
![]() |
|
conner
Beginner
Joined: 16 Oct 09 Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 Nov 09 at 9:02AM |
|
Got it working kinda... All rectangles are now placed above the actual form fields, however i had to set origin to BottomLeft for a 90 degree rotated paper, but think it actually should have been TopRight.
case QPDF.PageRotation of
0: FQPDF.SetOrigin(1); // TopLeft 90: FQPDF.SetOrigin(0); // BottomLeft, think it ought to be TopRight 180: FQPDF.SetOrigin(3); // BottomRight
270: FQPDF.SetOrigin(2); // TopRight, think it ought to be BottomLeft though end; But got another problem now, whenever i enter text into the form field, the text is misplaced. How can i control where the text is placed? though quickpdf just placed it in the formfield automatically... well its does for most of my documents, but still have problem with one of them.
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 Nov 09 at 10:16AM |
|
Hi!
Please have a look in the reference what the options for SetOrigin mean. The case "rotated" disorder this a little bit ... like i've told it already (Debenu knows it). With "SetFormFieldValue" or "SetFormFieldValueByTitle" you can set the value wherever the field is. This doesn't matter. I've made few experiences the last time with rotated formfields and i've never had problems with wrong displayed values. Cheers, Ingo |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store