We have a PDF file designed using Adobe LiveCycle. There are certain fields marked as Plain Text and Rich Text. For fields marked as Rich Text, we need to display Rich Text Editor to users in the html page.
1. There are two fields ‘SPFreeText1’ & ‘SPFreeText2’ marked as Rich Text. However, when checking in code it is returning totally different flags.
a. For SPFreeText1, it is showing RadiosInUnision Flag
b. For SPFreeText2, it is showing a number which is not the number of RichText flag.
2. Cannot access Font, Fontsize properties for PdfFomField Class. We are using ceTe.DynamicPDF.10.dll
Here is my code:
Dim myPDFDoc As PdfDocument = New PdfDocument("C:\A5 Team Bingo.pdf")
Dim mergeDoc As MergeDocument = New MergeDocument(myPDFDoc, MergeOptions.All)
For Each field As FormField In mergeDoc.Form.GetTextFields()
field.IsReadOnly = True
If field.Name.Contains("SPFreeText") Then
Dim pdfField As PdfFormField = myPDFDoc.Form.Fields(field.FullName)
' UNABLE TO ACCESS FONT AND FONTSIZE PROPERTIES OF PdfFormField
Dim style As FormattedTextAreaStyle = New FormattedTextAreaStyle(FontFamily.Helvetica, 12, True)
Dim page As Page = mergeDoc.Pages(pdfField.GetOriginalPageNumber() - 1)
Dim formattedTA As FormattedTextArea = New FormattedTextArea(" Test <b><u>This</u></b>", pdfField.GetX(page), pdfField.GetY(page), pdfField.Width, pdfField.Height, style)
page.Elements.Add(formattedTA)
' RICHTEXT FLAG NOT RECOGNISED. INSTEAD DISPLAYING RadiosInUnision AND SOME NUMBER
MsgBox(field.Flags.ToString())
End If
Next
mergeDoc.DrawToWeb(False)
Can you please let me know if I am doing something wrong here?
Incorrect Flags returned for RichText
Re: Incorrect Flags returned for RichText
Support · Oct 11, 2013Hello,
We would need to take a look at the actual PDF document. So please email the following information to [^a|mailto:support@cete.com|opennewwindow|support@cete.com^] and reference this forum thread url in your email.
1. Copy of the source PDF document used.
2. Version & build number of the dll.
Thanks,
ceTe Software Support Team.
Re: Incorrect Flags returned for RichText
Support · Nov 12, 2014Hello,
The latest version (v8) available on the website contains a fix for this issue. It can be downloaded from the customer area
by logging in with the product serial number. If you are evaluating the product the latest build can be downloaded here
.
Thanks,
ceTe Software Support Team.