Class
PdfImageDocumentSource
OfficeIMO.Pdf
One image source used to create a PDF page.
Inheritance
- object
- PdfImageDocumentSource
Usage
Explore 5 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
Accepted by parameters 4
Constructors
public PdfImageDocumentSource(byte[] bytes, string? name = null) #Creates an image source from an encoded image payload.
Parameters
- bytes byte[]
- name string? = null
Methods
FromFile 2 overloads
public static PdfImageDocumentSource FromFile(string path) #Creates an image source from a file snapshot.
Parameters
- path string
Returns
PdfImageDocumentSourcepublic static PdfImageDocumentSource FromFile(string path, long maximumEncodedImageBytes) #Creates an image source from a file snapshot within an encoded-byte limit. Document creation applies its own limit.
Parameters
- path string
- maximumEncodedImageBytes long
Returns
PdfImageDocumentSourceInherited Methods
Properties
public string? Name { get; } #Optional source name used as PDF alternate text.