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 - How it works highlight form fields?
  FAQ FAQ  Forum Search   Register Register  Login Login

How it works highlight form fields?

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

Joined: 08 Feb 12
Location: Kemerovo
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote dkryaklin Quote  Post ReplyReply Direct Link To This Post Topic: How it works highlight form fields?
    Posted: 08 Feb 12 at 9:22AM
How it works highlight (SetFormFieldHighlightMode) form fields?

My code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        QP = CreateObject(ClassName)
        QP.UnlockKey(LicenseKey)

        Dim s As String = Application.StartupPath & "\test.pdf"

        QP.LoadFromFile(s, "")
        QP.SetNeedAppearances(1)

        QP.SelectPage(1)

        Dim fnt As Integer = QP.AddFormFont(QP.AddTrueTypeFont("Arial", 1))
        Dim i As Integer = QP.NewFormField("test", 1)

        QP.SetFormFieldValue(i, "test")
        QP.SetFormFieldFont(i, fnt)
        QP.SetFormFieldAlignment(i, 1)

        QP.SetFormFieldBounds(i, 100, 100, 100, 100)
        QP.SetFormFieldBorderColor(i, 1, 0, 0)

        QP.SetFormFieldPage(i, 1)
        QP.SetFormFieldRotation(1, 0)

        QP.SetFormFieldHighlightMode(i, 3)

        QP.UpdateAppearanceStream(i)

        QP.RenderPageToFile(72, 1, 1, Application.StartupPath & "\test.jpg")
        PictureBox1.ImageLocation = Application.StartupPath & "\test.jpg"
    End Sub

Highlighting not. only the border

file http://dl.dropbox.com/u/3474175/test.pdf

Quick PDF Library - 8.14 beta 4 (ActiveX)
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 09 Feb 12 at 7:27AM
The Highlighting mode is only used by Acrobat Viewer to change the appearance of the field when the mouse is moved on top of the FormField.  It is not rendered as part of the RenderPageToFile function.

You would neet add a thick border and color to simulate a highlight.

Andrew.
Back to Top
dkryaklin View Drop Down
Beginner
Beginner
Avatar

Joined: 08 Feb 12
Location: Kemerovo
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote dkryaklin Quote  Post ReplyReply Direct Link To This Post Posted: 09 Feb 12 at 7:59AM
Thanks

I think it must be added to function reference

Dmitry
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