Loading...

Create a jpeg thumbnail of a page in the pdf

Support for GdPicturePDF Plugin.

Create a jpeg thumbnail of a page in the pdf

Postby Johnny » Thu Nov 24, 2011 4:41 pm

Hi,

I have a trial solution of your sdk, I cant find any example of how to create a thumbnail of a specific page from a pdf.

Kind regards,

Johnny
Johnny
 
Posts: 4
Joined: Wed Nov 23, 2011 3:42 pm

Re: Create a jpeg thumbnail of a page in the pdf

Postby Loïc » Thu Nov 24, 2011 7:51 pm

Here we go:
Code: Select all
        Dim oGdPicturePDF As New GdPicturePDF
        Dim oGdPictureImaging As New GdPictureImaging

        oGdPicturePDF.LoadFromFile("c:\test.pdf", False)
        oGdPicturePDF.SelectPage(1)
        Dim ImageID As Integer = oGdPicturePDF.GetPageThumbnail(96, 96, Color.Gray)
        oGdPictureImaging.SaveAsPNG(ImageID, "c:\test.png")
        oGdPictureImaging.ReleaseGdPictureImage(ImageID)


Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Create a jpeg thumbnail of a page in the pdf

Postby wemerson20 » Tue Nov 29, 2011 6:01 pm

Hi guys.
I'm having a problem with GdPictureImaging, trying to create a PDF from a tiff image Stream. I am using a function in C#

int ImageID = oGdPictureImaging.CreateGdPictureImageFromStream(stream);

I need the ImageID to create a PDF using the function

oGdPictureImaging.PdfCreateFromMultipageTIFF(ImageID, caminhoResultadoConversao, true, "", "", "", "", "");

and received de message when I try to generate the ImageID "Specified method is not supported"

Can anyone help me?
wemerson20
 
Posts: 4
Joined: Tue Nov 29, 2011 5:46 pm

Re: Create a jpeg thumbnail of a page in the pdf

Postby Loïc » Tue Nov 29, 2011 6:51 pm

Hi,

Please create a new thread for any new support request.

Thank you for your comprehension.

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Create a jpeg thumbnail of a page in the pdf

Postby wemerson20 » Tue Nov 29, 2011 6:53 pm

Ok.
wemerson20
 
Posts: 4
Joined: Tue Nov 29, 2011 5:46 pm


Return to GdPicture PDF Plugin

Who is online

Users browsing this forum: No registered users and 1 guest