Hi
I find a problem about convert a PDF to emf file, I want create emf file with bitmap, but I follow with step on line, it is not work, it looks like just image, no bitmap, do you have any other API work for this?
Thank you
Hi
Hi Rui,
Thanks for using our API’s.
I have tested the scenario using latest release of Aspose.Pdf for .NET 11.4.0 where I have used my sample PDF files with following code snippet and I am unable to notice any issue. However if you are facing any issue, please share your input document, so that we can further look into this matter. We are sorry for this inconvenience.
[C#]
// Open document
Document pdfDocument = new Document("c:/pdftest/test.pages.txt.pdf");
for (int pageCount = 1; pageCount <= pdfDocument.Pages.Count; pageCount++)
{
using (FileStream imageStream = new FileStream("c:/pdftest/test.pages_image" + pageCount + ".emf", FileMode.Create))
{
// Create Resolution object
Resolution resolution = new Resolution(300);
// Create EMF device with specified attributes
// Width, Height, Resolution
EmfDevice emfDevice = new EmfDevice(500, 700, resolution);
// Convert a particular page and save the image to stream
emfDevice.Process(pdfDocument.Pages[pageCount], imageStream);
// Close stream
imageStream.Close();
}
}
Hi Nayyer
Hi Rui,
Hi
Hi Rui,