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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - PDF-Form Landscape
  FAQ FAQ  Forum Search   Register Register  Login Login

PDF-Form Landscape

 Post Reply Post Reply
Author
Message
hkoestner View Drop Down
Beginner
Beginner
Avatar

Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote hkoestner Quote  Post ReplyReply Direct Link To This Post Topic: PDF-Form Landscape
    Posted: 28 Apr 06 at 2:29PM
I am working on a solution concerning the presentation of PDF-forms in a delphi form. The solution is based on the "FormTool" of "Chicks".
With forms in the landscape format the problem occurs that the fields are aligned vertically instead of horizontally.

The problem can also be reproduced with "FormTool".

Does anybody have a solution for this problem?
Back to Top
chicks View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert


Joined: 29 Oct 05
Location: United States
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote chicks Quote  Post ReplyReply Direct Link To This Post Posted: 28 Apr 06 at 5:15PM
Can you post an example PDF with the issue somewhere?
Back to Top
hkoestner View Drop Down
Beginner
Beginner
Avatar

Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote hkoestner Quote  Post ReplyReply Direct Link To This Post Posted: 28 Apr 06 at 5:51PM
Hi chicks,

no problem, you can find it here:

http://www.formsoft.de/quer.pdf

best regards
Back to Top
hkoestner View Drop Down
Beginner
Beginner
Avatar

Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote hkoestner Quote  Post ReplyReply Direct Link To This Post Posted: 03 May 06 at 4:15AM
Hi chicks,

any idea? - The example was created with Acrobat 6

best regards
Back to Top
chicks View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert


Joined: 29 Oct 05
Location: United States
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote chicks Quote  Post ReplyReply Direct Link To This Post Posted: 03 May 06 at 1:35PM
Well, I haven't had time to play with this too much, but here's a start:

In the RenderPage function, check the page rotation (I'm only checking non-zero here, but would need to be more sophisticated), and set pageWidth and pageHeight accordingly:

    IF iSEDPageRotation() <> 0 THEN
        pageWidth = iSEDGetPageBox(2,3)
        pageHeight = iSEDGetPageBox(2,2)
    ELSE
        pageWidth = iSEDGetPageBox(2,2)
        pageHeight = iSEDGetPageBox(2,3)
    END IF

Also in RenderPage, check the form fields for rotation, and position accordingly:

    scale = iResolution / 72
    FOR i = 1 TO fieldCount
        IF Fields(i).page = iCurPage THEN
            id = Fields(i).fldID
            IF iSedGetFormFieldRotation(id) <> 0 THEN
               Fields(i).x = (iSEDGetFormFieldBound(id, 0) - iSEDGetPageBox(2,0) ) * scale
               Fields(i).y = (pageHeight - iSEDGetFormFieldBound(id, 1) + iSEDGetPageBox(2,5)) * scale
               Fields(i).w = iSEDGetFormFieldBound(id, 3) * scale
               Fields(i).h = iSEDGetFormFieldBound(id, 2) * scale
            ELSE
               Fields(i).x = (iSEDGetFormFieldBound(id, 0) - iSEDGetPageBox(2,0) ) * scale
               Fields(i).y = (pageHeight - iSEDGetFormFieldBound(id, 1) + iSEDGetPageBox(2,5)) * scale
               Fields(i).w = iSEDGetFormFieldBound(id, 2) * scale
               Fields(i).h = iSEDGetFormFieldBound(id, 3) * scale
            END IF
        END IF
    NEXT i

This still doesn't position the field correctly, you'll need to play with that a bit, but it does at least paint it in the correct direction.
Back to Top
hkoestner View Drop Down
Beginner
Beginner
Avatar

Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote hkoestner Quote  Post ReplyReply Direct Link To This Post Posted: 03 May 06 at 6:24PM
Thanks Chicks

I will try it.

best regards
Back to Top
FKirch View Drop Down
Team Player
Team Player
Avatar

Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote FKirch Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 06 at 5:04AM
Where can I find the "formtools" of chicks?
Back to Top
chicks View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert


Joined: 29 Oct 05
Location: United States
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote chicks Quote  Post ReplyReply Direct Link To This Post Posted: 14 May 06 at 12:56AM
There are a few hacks here, including formtool, mostly having to do with PDF:

http://www.geocities.com/sea_sbs/files/

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store