Insert a blank page

Discussions about PDF management.
Post Reply
Metalcoder
Posts: 21
Joined: Tue Dec 18, 2007 4:20 pm

Insert a blank page

Post by Metalcoder » Tue Jun 12, 2018 9:13 am

Hello, Loic,
for almost 10 years now I use gdpicture v5 which suits me very well for my applications. I have another project on PDF and to justify this purchase to my IT department I have to test the V14, except I have a problem.
I would like to open any PDF, add a blank page (or insert a PDF) first and save the PDF.
could you make me a very simple code knowing that I always work in vb6 even if sometimes I try VB net.

thanks in advance

François

delbeke
Posts: 91
Joined: Wed Oct 31, 2012 5:07 pm

Re: Insert a blank page

Post by delbeke » Thu Jun 21, 2018 9:17 am

Hi MetalCoder.

Loïc ask me to create a sample for you.
Regrettably I no longer have a vb6 installed, so i have make this sample with a text editor and of course, I can't build the exe file.

Private Sub Form_Load()
Dim oLicenseManager As New LicenseManager
oLicenseManager.RegisterKEY ("XXX") 'Please, replace XXX by a valid demo or commercial license key.
End Sub

Private Sub Command1_Click()
Dim oGdPicturePDF As New GdPicturePDF
If oGdPicturePDF.LoadFromFile(FileIn, False) = GdPictureStatus_OK Then
oGdPicturePDF.InsertPage(PdfPageSizes.PdfPageSizeA4, 1)
oGdPicturePDF.SaveToFile(FileOut)
End If
End Sub

Hope this Help
Best Regards
Jean-Luc

Gabriela
Posts: 44
Joined: Wed Nov 22, 2017 9:52 am

Re: Insert a blank page

Post by Gabriela » Thu Jun 21, 2018 6:08 pm

Hi,

You can also find some examples here:
http://guides.gdpicture.com/content/web ... tPage.html
Kind regards,

Gabriela
GdPicture Team

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest