Hi!
I’m trying to render a PDF document to Tiff. When the PDF has
any kind of highlight annotation like text,drop downs, the text behind it is blanked in Tiff doc. Is there anything I can do to correct this?
Thanks!
Hi Mahesh,
Hi
Nayyer Shahbaz
PDF path : convertFromFile (source)
tiff file path : convertToFile (dest)
Private Function ConvertPdfToTif(ByVal convertFromFile As String, ByVal convertToFile As String) As Boolean
Dim license As New Aspose.Pdf.License()
license.SetLicense(“Aspose.Total.lic”)
Dim pc As New Aspose.Pdf.Facades.PdfConverter()
pc.Resolution = New Aspose.Pdf.Devices.Resolution(300)
Dim tiffDevice As New Aspose.Pdf.Devices.TiffDevice()
pc.ShowHiddenAreas = True
pc.BindPdf(convertFromFile)
pc.DoConvert()
pc.SaveAsTIFF(convertToFile, CompressionType.CCITT4)
Return True
End Function
Hi Mahesh,
have logged it in our issue tracking system as PDFNEWNET-37632. We will investigate this
issue in details and will keep you updated on the status of a correction.
We apologize for your inconvenience.
[VB.NET]
' load PDF form
Dim document As Document = New Document("c:/pdftest/Test (2).pdf")
' change form type from XFA to Standard Acro form
document.Form.Type = InteractiveFeatures.Forms.FormType.Standard
' create Stream instance
Dim stream As MemoryStream = New MemoryStream()
' save standard form in stream object
document.Save(stream)
Dim pc As New Aspose.Pdf.Facades.PdfConverter()
pc.Resolution = New Aspose.Pdf.Devices.Resolution(300)
pc.ShowHiddenAreas = True
' load standard acro from savedin stream
pc.BindPdf(stream)
pc.DoConvert()
pc.SaveAsTIFF("c:/pdftest/Test (2).tiff", CompressionType.CCITT4)
' close stream object
stream.Close()
Hi Mahesh,
Hi Nayyer Shahbaz,
Do you have any update…
Hi Mahesh,
<span style=“font-size:10.0pt;font-family:“Verdana”,“sans-serif”;
color:#333333”>As we recently have been able to notice this issue, and until or
unless we have investigated and have figured out the actual reasons of this
problem, we might not be able to share any timelines by which this problem will
be resolved.<o:p></o:p>
However, as soon as we have made some significant progress towards the resolution of this issue, we would be more than happy to update you with the status of correction. Please be patient and spare us little time. Your patience and comprehension is greatly appreciated in this regard.
Hi Nayyer,
Let me know the progress about this ticket,this is on the very IMP and high priority.I hope you will finish it very soon.
Hi Mahesh,
Hi All,
Please give the priority to this issue and provide the ETA to me ASAP.
Thanks for your response to my replay.
Thanks
Mahesh
Hi Mahesh,
The development team
has been busy resolving other priority issues and I am afraid the earlier
reported problem is not yet resolved. Furthermore, please note that you have reported issue under normal/free support
forum and as a normal rule of practice, issues are resolved in first come
and first serve basis; but the problems logged/reported under Enterprise or
Priority support model, have high precedence in terms of resolution, as compare
to issues under normal/free support model.<o:p></o:p>
In case you need to have your issue prioritized, you may consider opting for Enterprise or Priority support options. Nonetheless, note that ES/PS support does not guarantee any immediate resolution of issues (because it might be dependent on other issues or feature which needs to be implemented) but under this model, the development team starts investigating the problem on high priority. For further details, please visit Support Options.
We are sorry for this delay
and inconvenience.
Hi Mahesh,
Hi Mahesh,
The issues you have found earlier (filed as PDFNEWNET-37632) have been fixed in Aspose.Pdf for .NET 11.3.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Hi Mahesh,
- If field does not have Appearance dictionary (“AP” entry), field value is missing in resultant file.
- Fields which have “DV” entry (Default Value) is missing (because default value does not have appropriate appearance).
private void ProcessField(Field field)<o:p></o:p>
{
if (field.Count > 0)
{
foreach (Field subfield in field)
ProcessField(subfield);
}
else
{
if (field.Value == null)
{
if (field.EngineDict.HasKey("DV"))
{
field.Value = field.EngineDict["DV"].ToPdfString().ExtractedString;
}
}
}
}
foreach (Field subField in doc.Form)
{
ProcessField(subField);
}
If we fill the field value with Default Value from field dictionary, then values become visible.
<o:p>We need to update conversion process accordingly. </o:p>
Also please note that UpdateAppearanceOnConvert property is used to correctly update field appearance. This will make conversion correct.
[C#]
Document document = new Document(“37632.pdf”);<o:p></o:p>
document.Form.Type
= FormType.Standard;<o:p></o:p>
MemoryStream stream = new MemoryStream();<o:p></o:p>
TiffDevice
tiffdevice = new TiffDevice();<o:p></o:p>
document.Save(stream);<o:p></o:p>
Annotation.UpdateAppearanceOnConvert
= true;<o:p></o:p>
tiffdevice.Process(document, "37632.tiff");