Hi,
I have two things to know,
1.) I am new for this API.I am using Aspose Beta version for doing PDF operation.I tried for Extracting Image from PDF but i cant get.I attached the PDF for your Ref (Text.pdf). It contains Text and .eps image. Can anyone suggest me to overcome this and proceed in further?
2.) Will aspose give the complete formatting of text either in HTML or in WORD? If so, what package should i implement to do it.
Thanks in Advance.
Regards,
LDev
Hi LDev,
lwdevs:
1.) I am new for this API.I am using Aspose Beta version for doing PDF operation.I tried for Extracting Image from PDF but i cant get.I attached the PDF for your Ref (Text.pdf). It contains Text and .eps image. Can anyone suggest me to overcome this and proceed in further?
lwdevs:
2.) Will aspose give the complete formatting of text either in HTML or in WORD? If so, what package should i implement to do it.
Aspose.Pdf.Document document = new Aspose.Pdf.Document("sourcePDF.pdf");
//Save the Pdf file into HTML format
document.Save("sourcePDF.html", Aspose.Pdf.SaveFormat.Html);
//Instantiate a Pdf object by calling its empty constructor
Aspose.Pdf.Document document = new Aspose.Pdf.Document("sourcePDF.pdf");
//Save the Pdf file into HTML format
document.Save("sourcePDF.doc", Aspose.Pdf.SaveFormat.Doc);
lwdevs: I am new to this API. I am using Aspose Beta version for doing PDF operations. I tried extracting an image from PDF but couldn’t get it. I attached the PDF for your reference (Text.pdf). It contains text and . eps image. Can anyone suggest me to overcome this and proceed further?
Hi,
Thanks for your patience and sorry for the delayed response. I have tested the scenario and am able to reproduce the same problem that the image is not being extracted from the PDF file when using the following code snippet. For the sake of correction, I logged it in our issue tracking system as PDFNEWNET-37026. We will investigate this issue in detail and keep you updated on the status of a correction.
We apologize for your inconvenience.
// Open document
Document pdfDocument = new Document("c:/pdftest/Text.pdf");
// Console.WriteLine("Number of Images =" + pdfDocument.Pages[1].Resources.Images.Count);
// Extract a particular image
JImage xImage = pdfDocument.Pages[1].Resources.Javacsript.AppletImages[1];
FileStream outputImage = new FileStream("c:/pdftest/Text_output.jpg", FileMode.Create);*.
// save output image
xImage.Save(outputImage, System.Drawing.Imaging.ImageFormat.Jpeg);
ouputImage.Close();