Extracts an embedded file (attachment) from a stream containing a PDF document file, and saves it to an output stream.
public static void ExtractEmbeddedFile(
Stream stream,
string password,
int fileNumber,
Stream outputStream
)
public static void extractEmbeddedFile(
leadtools.ILeadStream iLeadStream,
java.lang.String string,
int intValue,
leadtools.ILeadStream iLeadStream2
);
stream
Stream containing the data of the owner PDF document.
password
The password to use when loading this PDF file (if the file is encrypted); otherwise, use null.
fileNumber
Embedded file number. This value must be between 1 and the total number of embedded files in the owner PDF document.
outputStream
Stream that will be populated with the embedded file's binary data.
This method is used to extract an embedded file from a stream to an output stream.
Refer to ExtractEmbeddedFile(string,string,int,string) for more information on extracting embedded files.
For an example refer to GetEmbeddedFileCount or PDFDocument.EmbeddedFiles
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.