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

Free Support Forum - aspose.com

Problem converting multipage / multidimension tiff to PDF

Hello,


I’m having a problem converting multi page tiff images with different page dimensions.
I use Aspose.PDF 4.1.2.0

Attatched is an image sample that is not working for me.

My resultant PDF has only one page (nor 2) and with incorrect dimensions.

Please, can you try to convert this image and tell me your results?

Thanks in advance,

Miguel.

Hello Miguel,

Thanks for your interest in our products.

I have tested the scenario and I’m able to reproduce the same problem. I have logged it in our issue tracking system as PDFNET-14937. We will investigate this issue in details and will keep you updated on the status of a correction.

We apologize for your inconvenience.

Hello Nayyer,

Just only one additional detail: Our Aspose.PDF component is licensed.

I keep waiting for your news about this problem and I hope it will be solved soon.

Regards,

Miguel Esteban.

Hello Miguel,

I'm afraid it's pretty hard to share the ETA before we've analyzed this issue in details. I will check with the development team and once they have any updates regarding its resolution/ETA date, I will let you know.

Please be patient and spare us little time. We will try our level best to get it resolved, ASAP.

Thanks for your cooperation and understanding.

Hello,


Is there any new about this problem?

Thanks,

Miguel.

Sorry but I am defrauded with Aspose.


2 months after communicating the bug, and there has no been response nor resolution of the problem.

I thought that it was a competent company but I was wrong.

I will be able neither to recommend to you nor to speak well about you.

Thanks,

Miguel.

Hello Miguel,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Sorry for getting back to you so late.

I know you have been facing an inconvenience due to this issue and your complaint is very true. As per our initial estimates, we thought that the issue will be resolved in 2 months, but we encountered some technical difficulties and due to which, the delay has occurred. Our development team is still working over this issue and trying to get it resolved.

I would again make a humble request to spare us little time and as soon as we have some affirmative news, we would be pleased to update you with the status of correction.

Please accept our apologies and we really appreciate your cooperation and comprehension in this regard.

The issues you have found earlier (filed as 14937) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

Hello again,

Testing this new release, an Object reference not set to an instance of an object. exception halts when I call the Save(path) method.

Here is call stack:

at x3f91538e8c0de749.x8cc6f4ae84548c02.xd3dfacf9ced05630(Pdf x6beba47238e0ade6, Section x4c742376f4cbaf27, Table x1ec770899c98a268, Cell xe6de5e5fa2d44af5, Image xe058541ca798c059, x33eef31791ddfc27 xb4012f98512a2f3d, xbfecfdaff4b493fe x96b3b0aca69853de)
at x3f91538e8c0de749.x3ea0b5a11618c323.x86d515adc7a0a302(Pdf x6beba47238e0ade6, Section x4c742376f4cbaf27, HeaderFooter x105be60320c854bc, Table x1ec770899c98a268, Row xa806b754814b9ae0, Cell xe6de5e5fa2d44af5, Image xe058541ca798c059, x33eef31791ddfc27 xb4012f98512a2f3d, xbfecfdaff4b493fe x96b3b0aca69853de, Boolean x70e701cee22724e3)
at x3f91538e8c0de749.x7576dadd7c449efa.x8810991188d773db(Pdf x6beba47238e0ade6, Section xb32f8dd719a105db, x33eef31791ddfc27 xb4012f98512a2f3d)
at x3f91538e8c0de749.x6a7cd842e95518d7.xc5e548c04b18e6e2(Pdf x6beba47238e0ade6)
at x3f91538e8c0de749.xaa36f84dba9d652f.x5ec1518f85fc1bbf(xb912e9429339cb81 x80010f902a1f736e, Pdf x6beba47238e0ade6)
at Aspose.Pdf.Pdf.Save(String pdfFile)
at TestAspose.Form1.ConvertFile(String path) in C:\\Development_2008\\TestAspose\\Form1.cs:line 69
at TestAspose.Form1.Convert() in C:\\Development_2008\\TestAspose\\Form1.cs:line 32
at TestAspose.Form1.button1_Click(Object sender, EventArgs e) in C:\\Development_2008\\TestAspose\\Form1.cs:line 22
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at TestAspose.Program.Main() in C:\\Development_2008\\TestAspose\\Program.cs:line 17
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

An empty pdf file is created in the destination path.

Has this release any change that makes the same code that was working well not working now?

Thanks,

Miguel.

Hello Miguel,

I have again tested the scenario by converting the TIFF image file that you have shared in your original post while using Aspose.Pdf for .NET 4.4.0 and I am unable to notice the problem. The PDF document is being generated without any issue. I have used the following code snippet to accomplish the requirement.

Can you please share that you are using the same image file or facing the issue when converting some different image ?

[C#]

Aspose.Pdf.Pdf objPDF = new Aspose.Pdf.Pdf();
Aspose.Pdf.Section objSec = objPDF.Sections.Add();

Aspose.Pdf.Image Tiff_Image = new Aspose.Pdf.Image();
Tiff_Image.ImageInfo.File = @"d:/pdftest/MemoryIssue_2JD49016.TIF";
Tiff_Image.ImageInfo.ImageFileType = ImageFileType.Tiff;
Tiff_Image.ImageInfo.TiffFrame = -1;
objSec.Paragraphs.Add(Tiff_Image);

objPDF.Save(@"D:/pdftest/Tiff_Image_To_PDF_Conversion.pdf");

The error appears when converting an image from a memory stream.

Pleas try this:

Aspose.Pdf.Pdf objPDF = new Aspose.Pdf.Pdf();

Aspose.Pdf.Section objSec = objPDF.Sections.Add();

Aspose.Pdf.Image Tiff_Image = new Aspose.Pdf.Image(objSec);

//Tiff_Image.ImageInfo.File = path;

FileStream fs = new FileStream(path, FileMode.Open);

StreamReader sr = new StreamReader(fs);

Tiff_Image.ImageInfo.ImageStream = sr.BaseStream;

Tiff_Image.ImageInfo.ImageFileType = ImageFileType.Tiff;

Tiff_Image.ImageInfo.TiffFrame = -1;

objSec.Paragraphs.Add(Tiff_Image);

objPDF.Save(@"D:/pdftest/Tiff_Image_To_PDF_Conversion.pdf");

Hello Miguel,

I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFNET-17433. We will investigate this issue in details and will keep you updated on the status of a correction. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

We apologize for your inconvenience.

The issues you have found earlier (filed as 17433) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.