Page 1 of 1

GDPicture Clone - out of Memory - 2GB File

Posted: Mon Dec 28, 2015 10:16 pm
by Tarunwalia
Hi,

I have a pdf file around 2GB which contains High Def Pictures and scanned Images. What I am doing is splitting the pdf into several smal pdfs based on what how many pages users enters in the textbox.

I'm trying to split the documents and save the new pdf and in between it gives error.

oGdPicturePDFDest = destination PDF File
oGdPicturePDFSrc = source PDF

Code: Select all

 Int32 pageIndex = splitValues.ElementAt(j).PageIndex;
 if (TotalPage > 1)
  {
      if (oGdPicturePDFDest.ClonePage(oGdPicturePDFSrc, pageIndex) != GdPictureStatus.OK)
         {
            statusSplit = false;
            System.Windows.Forms.MessageBox.Show("Cannot clone image: " + oGdPicturePDFDest.GetStat().ToString());
            return;
          }
  }

It work fine when the file size is around 500- 700mb

Re: GDPicture Clone - out of Memory - 2GB File

Posted: Tue Dec 29, 2015 12:19 pm
by delbeke
Hi Tarunwalia

Have you try to make a x64 exe ?
With this 2GB limit , it seem you are running a x32 program where the memory limit is 4GB.

Jean-Luc

Re: GDPicture Clone - out of Memory - 2GB File

Posted: Tue Jan 05, 2016 2:55 pm
by Loïc
Hi,

If the problem persists, even in 32-bit mode, please open a ticket on our helpdesk by providing a link from which we can download the document. Here the link is: https://www.gdpicture.com/support/getting-support-from-our-team .

With best regards,

Loïc

Re: GDPicture Clone - out of Memory - 2GB File

Posted: Tue Jan 05, 2016 4:36 pm
by Tarunwalia
It worked fine. When i converted the windows application to 64bit