You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > PDF Creation > GdPicture Image To PDF & PDF/A > SaveAsPDFStream > SaveAsPDFStream Method (Integer, Stream, Boolean, String, String, String, String, String)
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.SaveAsPDFStream Method (Integer, Stream, Boolean, String, String, String, String, String)

Saves a GdPicture image as single page pdf stream.

C#
public GdPictureStatus SaveAsPDFStream(
    int ImageID, 
    ref Stream PDFStream, 
    Boolean PDFA, 
    String Title, 
    String Author, 
    String Subject, 
    String Keywords, 
    String Creator
);
Visual Basic
Public Function SaveAsPDFStream(
    ByVal ImageID As Integer, 
    ByRef PDFStream As Stream, 
    ByVal PDFA As Boolean, 
    ByVal Title As String, 
    ByVal Author As String, 
    ByVal Subject As String, 
    ByVal Keywords As String, 
    ByVal Creator As String
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
PDFStream 
The Stream object to save a GdPicture image.  
PDFA 
True to generate PDF in PDF/A format else False.  
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.  
Returns

A member of the GdPictureStatus enumeration.

How to convert JPEG file to PDF/A

Dim ImageID As Integer
 
Dim PDFStream As IO.Stream = New IO.MemoryStream
 
ImageID = ogdpictureimaging.CreateGdPictureImageFromFile("c:image.jpg")
If ImageID <> 0 Then
    ogdpictureimaging.SaveAsPDFStream(ImageID, True, "PDF Title", "PDF Author", "PDF Subject", "key1;key2;key3", "The Creator")
    oGdPictureImaging.ReleaseGdPictureImage(ImageID)
End If
What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.