←Select platform

ExtractEmbeddedFile(Stream,string,int,string) Method

Summary

Extracts an embedded file (attachment) from a stream containing a PDF document file, and saves it to disk.

Syntax
C#
C++/CLI
Java
Python
public static void ExtractEmbeddedFile( 
   Stream stream, 
   string password, 
   int fileNumber, 
   string outputFileName 
) 
public static void extractEmbeddedFile( 
   leadtools.ILeadStream iLeadStream,  
   java.lang.String string,  
   int intValue,  
   java.lang.String string2 
); 
public:  
   static void ExtractEmbeddedFile( 
      Stream^ stream, 
      String^ password, 
      Int32 fileNumber, 
      String^ outputFileName 
   ) 
def ExtractEmbeddedFile(self,stream,password,fileNumber,outputFileName): 

Parameters

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.

outputFileName

Name of the file that will contain the embedded file's binary data.

Remarks

This method is used to extract the embedded file from a stream to an output file on disk.

Refer to ExtractEmbeddedFile(string,string,int,string) for more information on extracting embedded files.

Requirements

Target Platforms

Help Version 22.0.2023.7.10
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Pdf Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.