I have been trying for the past several days to convert a .Tiff file into a .PDF file and have not had any success. I have tried the code listed in the word documentation but most pages just show a big x image.
I have also tried various methods found in the forums and documentation for all products and have yet to find a solution that can create the desired output.
I do know that the image can be converted as proven by using ‘Office Convert Image TIFF Jpeg to PDF Free’ this application will produce the images as individual files but each one is actually readable.
When I use the .PDF Generator process I am only able to get a very low resolution .PDF if the IsBlackWhite value is True, when False the output is a zero bitted .PDF file???
How can I get a 100-200 page tiff converted to a .PDF
I would add a sample file but so far I have not been able to attach the 90 mb + file via this forum UI.
Thank You.
Hi Earl,<div style=“color: rgb(0, 0, 0); font-family: “Times New Roman”; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;”>
<div style=“color: rgb(0, 0, 0); font-family: “Times New Roman”; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;”>Thanks for contacting support.<div style=“color: rgb(0, 0, 0); font-family: “Times New Roman”; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;”>
<div style=“color: rgb(0, 0, 0); font-family: “Times New Roman”; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;”>Our forums support file upload feature up-to 25MB. <div style=“color: rgb(0, 0, 0); font-family: “Times New Roman”; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;”>
<div style=“color: rgb(0, 0, 0); font-family: “Times New Roman”; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;”>
<div style=“color: rgb(0, 0, 0); font-family: “Times New Roman”; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;”>Jagsoft:I would add a sample file but so far I have not been able to attach the 90 mb + file via this forum UI
<div style=“color: rgb(0, 0, 0); font-family: “Times New Roman”; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;”>You may either upload the file to some free file sharer and share the link with us or Archive the document inot multiple instances and then try uploading them in multiple posts. Once we have the input file, we will test the scenario and will keep you updated on the status of correction. We are sorry for this inconvenience.
Ok, I am uploading the file as 4 separate zip files with the 7-Zip split tiff files.
Hi Earl,
Hi Earl,
I am not licensed to use the Java version of Aspose. I only have access to the .NET versions.
Hi Earl,
Thanks for sharing the details.
I have again tested the scenario of input TIFF image which contains 39 frames (as shown in attached image file) and as per my observations, the resultant PDF contains all 30 frames. I have used Aspose.PDF for .NET 17.2.0 in Visual Studio 2015 running over Windows 10 and I am unable to notice any issue.
I wonder how you are getting 161 pages when using PDFSharp. Can you please double check the input TIFF image and share your observations. Please get the resultant file from this link.
C# Code
Aspose.Pdf.Document doc = new Aspose.Pdf.Document();
Aspose.Pdf.Image image = new Aspose.Pdf.Image();
// provide information for source/input TIFF image
image.File = @"C:\pdftest\00206B92A9AE170307105147.tif";
// add page to pages collection of DOC object
doc.Pages.Add();
// add TIFF image to paragraphs collection of first page
doc.Pages[1].Paragraphs.Add(image);
// save resultant PDF file
doc.Save(@"C:\pdftest\00206B92A9AE170307105147.pdf");
I have also downloaded the original files uploaded and still see 161 pages in this multi-page tiff file using Aspose.Word .NET 17.2.0. I am running Windows 7 and also testing on Windows Server 2012 R2. Please see the results from the attached split pdf files.
Hi Earl,
It looks like this still has issues as most of the large multipage tiffs that I processed encountered an ‘Out of Memory’ error including the file used for this support issue.
I have tested this on 3 different machines, Windows 7 with 16GB ram, Windows Server 2008R2 with 8GB ram, and Windows Server 2012R2 with 4GB ram, all with the same issue.
Hi Earl,
I have experienced this issue with the .TIFF file that has been uploaded as part of this incident.
Hi Earl,
Thank You, It appears that x64 was the issue.
Hi Earl,
It all is working until I add the ConversionProgressEventHandler once I add the handler the PDF save goes real quick and then the output document is left unreadable???
Hi Earl,
Thanks for sharing code snippet. I have tested the scenario in my environment and noticed that the API is generating unreadable/corrupted PDF when we use DocSaveOptions to save the document. As this issue was reported in [this](https://forum.aspose.com/t/12005)
thread by you and I already have logged it as PDFNET-42475 in our issue tracking system. So I am associating issue ID with this thread as well so that you may be notified about the status of its resolution. Please be patient and spare us a little time. We are sorry for the inconvenience.
Best Regards,
It appears there are issues with this process while running in Windows Server Standard 2008 SP2.
Hi Earl,