If you convert document to images the Hebrew font is not rendered.
If you save as static form, resultant pdf is not flattened but maybe this is correct not sure.
Ideally, want a method to remove XFA Lifecycle Form and convert to a standard PDF document that can be opened by an PDF viewer without Form support at all.
Adobe LiveCycle Designer Form Cannot be Merged.pdf (80.8 KB)image_out_1.jpg (344.1 KB)
Sample code:
{
Aspose.Pdf.Document pdfDocument2 = new Aspose.Pdf.Document(@“C:\TestFiles\SourceDocuments\PDF Files\Lifecycle\Adobe LiveCycle Designer Form Cannot be Merged.pdf”);
// Set the form fields type as standard AcroForm
pdfDocument2.Form.Type = FormType.Static;
pdfDocument2.Save(@"C:\Test\Output\xfastatic.pdf");
for (var pageNo = 1; pageNo <= pdfDocument2.Pages.Count; pageNo++)
{
using (FileStream imageStream = new FileStream(@"C:\Test\Output\" + "image_out_" + pageNo + ".jpg", FileMode.Create))
{
// Create Resolution object
Resolution resolution = new Resolution(300);
// Create Jpeg device with specified attributes
// Width, Height, Resolution
JpegDevice JpegDevice = new JpegDevice( (85 * 30), 11 * 300, resolution);
// Convert a particular page and save the image to stream
JpegDevice.Process(pdfDocument2.Pages[pageNo], imageStream);
// Close stream
imageStream.Close();
}
}
}