![]() |
Saves a GdPicture image as single page pdf with encryption.
public GdPictureStatus SaveAsPDF( int ImageID, String FilePath, String Title, String Author, String Subject, String Keywords, String Creator, PdfEncryption Encryption, PdfRight Rights, String UserPassword, String OwnerPassword );
Public Function SaveAsPDF( ByVal ImageID As Integer, ByVal FilePath As String, ByVal Title As String, ByVal Author As String, ByVal Subject As String, ByVal Keywords As String, ByVal Creator As String, ByVal Encryption As PdfEncryption, ByVal Rights As PdfRight, ByVal UserPassword As String, ByVal OwnerPassword As String ) As GdPictureStatus
|
Parameters |
Description |
|
ImageID |
GdPicture Image Identifier. |
|
FilePath |
The complete PDF file path to save a GdPicture image. |
|
Title |
The title of the PDF. |
|
Author |
The PDF Author. |
|
Subject |
The PDF Subject. |
|
Keywords |
The PDF Keywords. |
|
Creator |
The name of the application which creates the PDF. |
|
Encryption |
A member of the PdfEncryption enumeration. Note: AES encyption is not yet available. |
|
Rights |
A value returned by the PdfCreateRights function. |
|
UserPassword |
The user password for the PDF. Can be an empty string. |
|
OwnerPassword |
The owner password for the PDF. Can be an empty string. |
A member of the GdPictureStatus enumeration.
How to convert JPEG file to encrypted PDF
Dim ImageID As Integer Dim PdfRights As PdfRight = ogdpictureimaging.PdfCreateRights(True, True, True, True, True, True, True, True) ImageID = ogdpictureimaging.CreateGdPictureImageFromFile("c:image.jpg") If ImageID <> 0 Then ogdpictureimaging.SaveAsPDF(ImageID, "c:image.pdf", "PDF Title", "PDF Author", "PDF Subject", "key1;key2;key3", "The Creator", PdfEncryption.PdfEncryption128BitRC4, PdfRights, "userpass", "ownerpass") oGdPictureImaging.ReleaseGdPictureImage(ImageID) End If
|
What do you think about this topic? Send feedback!
|
|
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.
|