You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > PDF Creation > Low-level Functions > PdfAddImageFromFile > PdfAddImageFromFile Method (Integer, String)
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.PdfAddImageFromFile Method (Integer, String)

Adds an image from file to a PDF.

C#
public int PdfAddImageFromFile(
    int PdfID, 
    String ImagePath
);
Visual Basic
Public Function PdfAddImageFromFile(
    ByVal PdfID As Integer, 
    ByVal ImagePath As String
) As Integer
Parameters
Parameters 
Description 
PdfID 
A PDF identifier returned by the PdfNewPdf(), PdfOCRStart(), PdfOcrStartStream(), TwainPDFStart() or TwainPdfStartStream() function. 
ImagePath 
The full image file path.  
Returns

Returns an incremental Pdf image number if success, else 0. This pdf image number can be used with the PdfDrawImage() function.

Supported formats are RAW, PICT, BMP, DIB, RLE, ICO, EMF, WMF, GIF, ANIMATED GIF, JPEG, JPG, JPE, JFIF, PNG, TIFF, MULTIPAGE TIFF, PNM, PPM, PBM, PGM, PFM, RPPM, RPGM, RPBM, PCX, XPM, XBM, WBMP, TGA, SGI, Sun RAS, PSD, MNG, Kodak PhotoCD files, KOALA files, JP2, J2K, JNG, JBIG, IFF, HDR, Raw Fax G3, EXR, DDS and Dr. Halo files.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.