RenderPageToGdPictureImage returns generic error

Discussions about image processing and document imaging.
Post Reply
shilpa
Posts: 6
Joined: Tue Jul 03, 2012 8:19 am

RenderPageToGdPictureImage returns generic error

Post by shilpa » Tue Jul 03, 2012 10:08 am

hi i using following code to get image from pdf page

Dim InputPDF As New GdPicturePDF
InputPDF.LoadFromFile("D:\test.pdf", false)
InputPDF.SelectPage(1)
dim ImageID as integer = InputPDF.RenderPageToGdPictureImage(300, False)

but i got imageid 0 ,and getstat methods return "1 generic error " i tried many different pdf but same result, i m using gdpicture.net 9 new release trial version , how do i overcome this error .

i want to save pdf page as .jpg/.png image with transparent background
any one any :idea:

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: RenderPageToGdPictureImage returns generic error

Post by SamiKharma » Tue Jul 03, 2012 10:24 am

Hi,

I have tried your code here and it worked like a charm.
Since you have tried V9, it means you can have an SLA plan. Please submit a ticket to our support system: support.gdpicture.com, and attach a pdf to it that causes the error.

Best Regards,
Sami

shilpa
Posts: 6
Joined: Tue Jul 03, 2012 8:19 am

Re: RenderPageToGdPictureImage returns generic error

Post by shilpa » Tue Jul 03, 2012 11:12 am

"it means you can have an SLA plan" ? what is SLA Plan.

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: RenderPageToGdPictureImage returns generic error

Post by SamiKharma » Tue Jul 03, 2012 11:52 am

Hi,

SLA: Support Level Agreement

Please see Q3:
https://www.gdpicture.com/support-faq.php

Best Regards,
Sami

shilpa
Posts: 6
Joined: Tue Jul 03, 2012 8:19 am

Re: RenderPageToGdPictureImage returns generic error

Post by shilpa » Tue Jul 03, 2012 12:52 pm

hi,
i tried the pdf that available in your document section with this name "GdPicture_NET Document Imaging SDK"

one thing very first time when i run the project i got error "GdPicture.NET.9.image.gdimgplug dll not found.." then i change my project setting "target CPU" option from any cpu to x86 and copy this dll to application directory then error get resolve i dont know just guessing that may be the error cause due to this .dll i m sure ... :?

shilpa
Posts: 6
Joined: Tue Jul 03, 2012 8:19 am

Re: RenderPageToGdPictureImage returns generic error

Post by shilpa » Tue Jul 03, 2012 2:27 pm

hi,
if i run sample project everything works fine ,i got image id grater then 0 and get image , i think its issue related to dll .
in my project ,i had done following steps

1 i create a new project in vs 2010 and
2. add gdpicture.net.9 dll from "C:\Windows\assembly\GAC_MSIL\GdPicture.NET.9\9.0.0.7__3474f1a1ac699f44\GdPicture.NET.9.dll", ( as i saw this path in sample project)
3. copy GdPicture.NET.9.image.gdimgplug dll from "C:\Program Files\GdPicture.NET 9\Redist\" to application directory

also how do i use SetTransparency method to get transparent image from pdf page

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: RenderPageToGdPictureImage returns generic error

Post by SamiKharma » Tue Jul 03, 2012 3:23 pm

Hi,

Please look at our sample demos, you also have add the GdPicture.NET.9.pdf.dll to the list of references.
There are also many c++ dlls that you need next to your exe folder: to understand what they are, look at the Redistribition section in our documentation.

As for set transparency, after you get the image from the pdf, convert it to 32 bits per pixel, and then set the transperncy.

Best Regards,
Sami

shilpa
Posts: 6
Joined: Tue Jul 03, 2012 8:19 am

Re: RenderPageToGdPictureImage returns generic error

Post by shilpa » Wed Jul 04, 2012 7:08 am

hi, SamiKharma
Thanks a lot for your reply atleast my project is working now....
but as mention in v9 feature list "full pdf transparency", how do i achieve that i want pdf background color transparent,
in the case when i dont know the pdf backgroud color, because at runtime i dont get background color of pdf, how to do i get full pdf transparent

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests