Loading...

Stack Overflow

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

Stack Overflow

Postby kviral » Mon Oct 26, 2009 5:56 pm

Hi Loic

I am merging multiple PDF Files into One, while saveaspdf(), i m getting error as stack overflow.

Code: Select all
Dim sFile As Integer
MergedFile = App.Path & "\stacked\"
    If (lstFiles.ListCount > 0) Then
        For sFile = 0 To lstFiles.ListCount - 1
            If (sFile = 0) Then
                GdViewer2.DisplayFromFile (lstFiles.List(sFile))
                Imaging2.SetNativeImage (GdViewer2.GetNativeImage)
                GdViewer2.CloseImage
                'MsgBox lstFiles.List(sFile)
            Else
                Imaging2.PdfAddImageFromFile (lstFiles.List(sFile))
            End If
        Next
        MergedFilePath = MergedFile + "Stacked_" & Format(Now(), "DDMMYYYYhhmmss") & ".pdf"
        Imaging2.SaveAsPDF (MergedFilePath)
    Else
        MsgBox "No File(s) loaded"
    End If


Please advice.

-Thanks,
Viral
Thank you,

Viral Kothari
Software Eng.
Image
User avatar
kviral
 
Posts: 54
Joined: Thu Oct 01, 2009 3:53 pm
Location: Tarrytown, NY

Re: Stack Overflow

Postby kviral » Tue Oct 27, 2009 10:53 am

Dear Loic,

Can you please tell me how to add PDF page to existing PDf file ?

-Thanks,
Viral
Thank you,

Viral Kothari
Software Eng.
Image
User avatar
kviral
 
Posts: 54
Joined: Thu Oct 01, 2009 3:53 pm
Location: Tarrytown, NY

Re: Stack Overflow

Postby Loïc » Tue Oct 27, 2009 11:41 am

Hi,

You have a comprehensive sample here: gdpicture-activex-code-samples/how-merge-pdf-files-t338.html

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: Stack Overflow

Postby kviral » Tue Oct 27, 2009 3:26 pm

Thanks Loic.
Thank you,

Viral Kothari
Software Eng.
Image
User avatar
kviral
 
Posts: 54
Joined: Thu Oct 01, 2009 3:53 pm
Location: Tarrytown, NY


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 3 guests

cron