We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Missing Text on PDF Conversion

I am unable to share the PDF but we have two issues:


  1. A PDF file after converted shows most of the data but the data that was entered by the user is missing. Attached an image showing the missing data and the creation information of the PDF. Is there any know issues where data cannot be transfer to the images?
  2. On a second PDF of 18 Pages we are getting an internal aspose error. Out of Memory is the exception and it comes from the Aspose DLL. Do you see any issue with how this conversion code:
//LoadLicense
Aspose.Pdf.Kit.License license = new Aspose.Pdf.Kit.License();
license.SetLicense(licenseName);
//create return object
List<byte[]> images = new List<byte[]>();
//Load Byte Array to Stream
using (MemoryStream inputStream = new MemoryStream(InputFile))
{
//create PdfConverter object and bind input PDF file
Aspose.Pdf.Kit.PdfConverter pdfConverter = new Aspose.Pdf.Kit.PdfConverter();
pdfConverter.Resolution = 300;
pdfConverter.BindPdf(inputStream);
pdfConverter.DoConvert();
            <span style="color:lawngreen;">//create TiffSettings object and set CompressionType</span>
            <span style="color:#eddac0;">Aspose</span><span style="color:silver;">.</span><span style="color:#eddac0;">Pdf</span><span style="color:silver;">.</span><span style="color:#eddac0;">Kit</span><span style="color:silver;">.</span><span style="color:cyan;">TiffSettings</span> <span style="color:#eddac0;">tiffSettings</span> <span style="color:silver;">=</span> <span style="color:#40c4ff;">new</span> <span style="color:#eddac0;">Aspose</span><span style="color:silver;">.</span><span style="color:#eddac0;">Pdf</span><span style="color:silver;">.</span><span style="color:#eddac0;">Kit</span><span style="color:silver;">.</span><span style="color:cyan;">TiffSettings</span>();
            <span style="color:#eddac0;">tiffSettings</span><span style="color:silver;">.</span><span style="color:#eddac0;">CompressionType</span> <span style="color:silver;">=</span> <span style="color:#eddac0;">Aspose</span><span style="color:silver;">.</span><span style="color:#eddac0;">Pdf</span><span style="color:silver;">.</span><span style="color:#eddac0;">Kit</span><span style="color:silver;">.</span><span style="color:cyan;">CompressionType</span><span style="color:silver;">.</span><span style="color:#eddac0;">CCITT4</span>;
            <span style="color:#eddac0;">tiffSettings</span><span style="color:silver;">.</span><span style="color:#eddac0;">ColorDepth</span> <span style="color:silver;">=</span> <span style="color:#eddac0;">Aspose</span><span style="color:silver;">.</span><span style="color:#eddac0;">Pdf</span><span style="color:silver;">.</span><span style="color:#eddac0;">Kit</span><span style="color:silver;">.</span><span style="color:cyan;">ColorDepth</span><span style="color:silver;">.</span><span style="color:#eddac0;">Format1bpp</span>;
            <span style="color:lawngreen;">//convert to TIFF image</span>
            <span style="color:#40c4ff;">using</span> (<span style="color:cyan;">MemoryStream</span> <span style="color:#eddac0;">outputStream</span> <span style="color:silver;">=</span> <span style="color:#40c4ff;">new</span> <span style="color:cyan;">MemoryStream</span>())
            {
                <span style="color:lawngreen;">//Save as MultiTiff</span>
                <span style="color:#eddac0;">pdfConverter</span><span style="color:silver;">.</span><span style="color:#eddac0;">SaveAsTIFF</span>(<span style="color:#eddac0;">outputStream</span>, <span style="color:#eddac0;">DefaultDpi</span>, <span style="color:#eddac0;">DefaultDpi</span>, <span style="color:#eddac0;">tiffSettings</span>, <span style="color:#40c4ff;">new</span> <span style="color:cyan;">WinAPIIndexBitmapConverter</span>());
                <span style="color:#eddac0;">pdfConverter</span><span style="color:silver;">.</span><span style="color:#eddac0;">Close</span>();</pre></div><div>Thanks</div></div>

Hi Luis,

I would like to inform you that Aspose.Pdf for .NET and Aspose.Pdf.Kit for .NET have been merged into a single product and Aspose.Pdf.Kit for .NET has been discontinued as a separate product. All the features of Aspose.Pdf.Kit for .NET are available under Aspose.Pdf.Facades namespace of Aspose.Pdf for .NET v6.x. You can check the following documentation links to upgrade your code from Aspose.Pdf.Kit for .NET to the new merged Aspose.Pdf for .NET.

http://www.aspose.com/blogs/aspose-blogs/shahzad-latif/archive/2011/06/11/migrating-from-legacy-code-to-merged-aspose.pdf-for-.net.html

Kindly use the latest version of Aspose.Pdf for .NET v6.7 and check, if it fits your need. If you still face any problem, kindly share the source documents with us. This will help us to identify the issue and reply back to you soon.

Please feel free to contact support in case you need any further assistance.

Thanks & Regards,