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 - Best Practices for Fillable forms with Firefox
  FAQ FAQ  Forum Search   Register Register  Login Login

Best Practices for Fillable forms with Firefox

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

Joined: 20 Sep 13
Location: Ohio
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote ja928 Quote  Post ReplyReply Direct Link To This Post Topic: Best Practices for Fillable forms with Firefox
    Posted: 17 Oct 13 at 12:11AM
I'm new to the product, so please forgive a possibly ignorant question. I have created a PDF with Text Fields in PDF Converter Professional 8.1. These populate and render fine in IE, Chrome and mobile Safari. However, Firefox has a known bug with displaying fillable PDFs. Ultimately, I'd like the text fields to be non-editable anyway, I just want to present users a good looking, pre-filled form.   

I have been searching the forum, but I can't see anyone else reporting this. Am I missing something like Form.Lock or maybe a way to detect Firefox's selected plugin for viewing these?

I am using the following code in ASP.Net(VB) with version 9.16:
            'Count the number of form fields in the loaded document
            Dim FieldCountAcroForms As Integer = QP.FormFieldCount()
            '// Loop through each form field on the selected page
            For i As Integer = FieldCountAcroForms To 1 Step -1
               '// Determine form field type
               Dim eFldType As DLL.FieldType = QP.GetFormFieldType(i)
               Try
                    Select Case eFldType
                        Case DLL.FieldType.Text
                            If Not System.Web.HttpContext.Current.Session(QP.GetFormFieldTitle(i).ToLower) & "" = "" Then
                                QP.SetFormFieldValue(i, System.Web.HttpContext.Current.Session(QP.GetFormFieldTitle(i).ToLower) & "")
                            End If
                            If bFlatten Then QP.SetFormFieldReadOnly(i, 1) 'Lock it
                        Case DLL.FieldType.CheckBox
                            If CType(System.Web.HttpContext.Current.Session(QP.GetFormFieldTitle(i).ToLower), Boolean) Then QP.SetFormFieldValue(i, "Yes")
                            If bFlatten Then QP.SetFormFieldReadOnly(i, 1) 'Lock it
                        Case DLL.FieldType.Signature
                            Dim sDbg As String = "Sig field " & QP.GetFormFieldTitle(i) 'Don't lock
                        Case Else
                            Dim sDebug As String = QP.GetFormFieldTitle(i) & " Type" & eFldType.ToString
                    End Select
               Catch exArg As ArgumentException 'Column not in table
                    'Try to catch exception for duplicated column name
               Catch ex As Exception
                    Dim sDebug As String = ex.Message
               End Try
            Next

The loop goes backward because I made an attempt to Flatten the fields using Flatten and UpdateAndFlatten. I would appreciate any help. Thanks in advance.
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