PDF 2 TIFF

Discussions about image processing and document imaging.
Post Reply
ingo
Posts: 24
Joined: Tue Mar 31, 2009 3:04 pm
Location: Germany

PDF 2 TIFF

Post by ingo » Mon Feb 06, 2017 1:26 pm

Hello,

i convert a PDF File to Tiff, with Version 8.4.0.3 the conversion success compiled in x86.

The same File with 11.2.0.4 fails with OutOfMemory Error compiled in x86.
If i compile 11.2.0.4 in AnyCPU the conversion success with 1.85 Gb of Ram.

Is the behavior known ?

User avatar
Loïc
Site Admin
Posts: 5587
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: PDF 2 TIFF

Post by Loïc » Mon Feb 06, 2017 3:27 pm

Hi,

Could you clarify what you mean by "behavior"?

Kind regards,

Loïc

ingo
Posts: 24
Joined: Tue Mar 31, 2009 3:04 pm
Location: Germany

Re: PDF 2 TIFF

Post by ingo » Mon Feb 06, 2017 5:27 pm

I wonder that 11.2.0.4 needs so many RAM for conversion and 8.4.0.3 not.
Is this a known problem ?

User avatar
Loïc
Site Admin
Posts: 5587
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: PDF 2 TIFF

Post by Loïc » Mon Feb 06, 2017 5:30 pm

Quick answer: not it is not.

But I don't really know what you are doing and how you are doing it. So to get further assistance you should provide at least a code snippet and the input document used if there is no confidential problematic.

With best regards,

Loïc

ingo
Posts: 24
Joined: Tue Mar 31, 2009 3:04 pm
Location: Germany

Re: PDF 2 TIFF

Post by ingo » Mon Feb 06, 2017 5:50 pm

Hi,

Code is just the PDF2TIFF Example.

if (oGdPicturePDF.LoadFromFile(sFile, false) == GdPictureStatus.OK)
{
for (int i = 1; i <= oGdPicturePDF.GetPageCount(); i++)
{
oGdPicturePDF.SelectPage(i);
int rasterPageID = oGdPicturePDF.RenderPageToGdPictureImageEx(300, true);

GdPictureStatus statusConvert = Imaging1.ConvertTo1Bpp(rasterPageID);

if (statusConvert != GdPictureStatus.OK)
return -1;

string sOutFile = Path.Combine(sTmpDir, Path.GetFileNameWithoutExtension(sFile) + i + sExtension);
GdPictureStatus statSave = GdPictureStatus.OK;

statSave = Imaging1.SaveAsTIFF(rasterPageID, sOutFile, TiffCompression.TiffCompressionCCITT4);


The Document is confidential problematic.

Kind regards

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests