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!
![]() |
How it works highlight form fields? |
Post Reply
|
| Author | |
dkryaklin
Beginner
Joined: 08 Feb 12 Location: Kemerovo Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
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) |
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
dkryaklin
Beginner
Joined: 08 Feb 12 Location: Kemerovo Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 Feb 12 at 7:59AM |
|
Thanks
I think it must be added to function reference Dmitry |
|
![]() |
|
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