We are using aspose for extracting images from PDF, but we are facing one issue.
There are only 2 images contains in first page of one pdf file, pdf is having total three pages. But while reading images from the pdf, each pages returning these 2 images.
Below is the code we are using.
Document pdfDocument = new Document(FileName);
for (int k = 0; k < tiffImageList.Count; k++)
{
Stream PdfPageArray = new MemoryStream((byte[])tiffImageList[(k+1)]);
Document pdfDocumentPage = new Document(PdfPageArray);
int imageCount = pdfDocument.Pages[(k+1)].Resources.Images.Count;
We are using aspose for extracting images from PDF, but we are facing one issue.
There are only 2 images contains in our pdf file, pdf is having total three pages and the images are in first page. But while reading images from the pdf, each pages of the pdf returning these 2 images. Please help me to resolve the issue.
Below is the code we are using.
Document pdfDocument = new Document(FileName);
for (int k = 0; k < pdfDocument.Pages.Count; k++)
{
Stream PdfPageArray = new MemoryStream((byte[])tiffImageList[(k)]);
Document pdfDocumentPage = new Document(PdfPageArray);
int imageCount = pdfDocument.Pages[(k+1)].Resources.Images.Count;
I have tested the scenario and I am able to
notice the same problem. For the sake of correction, I have logged this problem
as PDFNEWNET-39746 in our issue tracking system. We will
further look into the details of this problem and will keep you updated on the
status of correction. Please be patient and spare us little time. We are sorry
for this inconvenience.
Thanks for your patience. The issue reported earlier is still pending for review and is not yet resolved. As soon as we have some further updates, we will let you know.
TiffDevice tiffDevice = new TiffDevice(resolution, tiffSettings);
tiffDevice.Process(pdfDocument, outputTiffName);
Please reply.
Thanks for your inquiry. I am afraid you can not change fonts after conversion of PDF to TIFF. However you can replace font in PDF document before the PDF to TIFF conversion as following. Please check following documentation link for details, it will help you to accomplish the task.
You may consider decreasing left margin because when changing left alignment for individual page object, there can be formatting issues. In case you have some different requirement, please share some further details.