We are using GDPicture to generate and save as JPEG from pdf. one of our pdf files that we get from external source is not able the generate the image from pdf using gd picture. The code is given below and the pdf is attached.
GdPicturePDF _gdPicturePdf = new GdPicturePDF();
GdPictureStatus status = _gdPicturePdf.LoadFromFile(filePathtextBox.Text, true);
if (_gdPicturePdf.GetPageCount() > 0)
using (GdPictureImaging gdPictureImaging = new GdPictureImaging())
int imageId = 0;
status = _gdPicturePdf.SelectPage(1);
VerifyStatus(status, "Failed to select first page in Pdf document.");
imageId = _gdPicturePdf.RenderPageToGdPictureImage(96.0f, false);
if (_gdPicturePdf != null)
VerifyStatus(_gdPicturePdf.GetStat(), "Failed to save image to jpeg.");
imagepanel.BackgroundImage = System.Drawing.Image.FromFile(_tempOutputFile);
- (646.42 KiB) Downloaded 72 times
This is because this PDF form is a actually a PDF/XFA document, a proprietary XML based Adobe standard that usually comes from Adobe LiveCycle Designer.
As is has not been recognized as an ISO standard, we do not support this standard at the moment.
Has there been any further investigation into XFA support? Currently all PDF/XFA files are rendering with the standard Adobe warning message:
''If this message is not eventually replaced by the proper contents of the document, your PDF
viewer may not be able to display this type of document...."
Who is online
Users browsing this forum: Bing [Bot] and 2 guests