HiraokaHyperTools.iTextSharp-LGPL  0.2.5
iTextSharp.text.pdf.PdfStamper Class Reference
Inheritance diagram for iTextSharp.text.pdf.PdfStamper:
iTextSharp.text.pdf.interfaces.IPdfViewerPreferences iTextSharp.text.pdf.interfaces.IPdfEncryptionSettings

Public Member Functions

 PdfStamper (PdfReader reader, Stream os)
 
 PdfStamper (PdfReader reader, Stream os, char pdfVersion)
 
 PdfStamper (PdfReader reader, Stream os, char pdfVersion, bool append)
 
void ReplacePage (PdfReader r, int pageImported, int pageReplaced)
 
void InsertPage (int pageNumber, Rectangle mediabox)
 
void Close ()
 
PdfContentByte GetUnderContent (int pageNum)
 
PdfContentByte GetOverContent (int pageNum)
 
void SetEncryption (byte[] userPassword, byte[] ownerPassword, int permissions, bool strength128Bits)
 
void SetEncryption (byte[] userPassword, byte[] ownerPassword, int permissions, int encryptionType)
 
void SetEncryption (bool strength, String userPassword, String ownerPassword, int permissions)
 
void SetEncryption (int encryptionType, String userPassword, String ownerPassword, int permissions)
 
void SetEncryption (X509Certificate[] certs, int[] permissions, int encryptionType)
 
PdfImportedPage GetImportedPage (PdfReader reader, int pageNumber)
 
void AddAnnotation (PdfAnnotation annot, int page)
 
PdfFormField AddSignature (String name, int page, float llx, float lly, float urx, float ury)
 
void AddComments (FdfReader fdf)
 
void SetThumbnail (Image image, int page)
 
bool PartialFormFlattening (String name)
 
void AddFileAttachment (String description, byte[] fileStore, String file, String fileDisplay)
 
void AddFileAttachment (String description, PdfFileSpecification fs)
 
void MakePackage (PdfName initialView)
 
void MakePackage (PdfCollection collection)
 
virtual void AddViewerPreference (PdfName key, PdfObject value)
 
void SetFullCompression ()
 
void SetPageAction (PdfName actionType, PdfAction action, int page)
 
void SetDuration (int seconds, int page)
 
void SetTransition (PdfTransition transition, int page)
 
Hashtable GetPdfLayers ()
 

Static Public Member Functions

static PdfStamper CreateSignature (PdfReader reader, Stream os, char pdfVersion, string tempFile, bool append)
 
static PdfStamper CreateSignature (PdfReader reader, Stream os, char pdfVersion)
 
static PdfStamper CreateSignature (PdfReader reader, Stream os, char pdfVersion, string tempFile)
 

Protected Attributes

PdfStamperImp stamper
 

Properties

Hashtable MoreInfo [get, set]
 
PdfSignatureAppearance SignatureAppearance [get]
 
bool RotateContents [get, set]
 
PdfWriter Writer [get]
 
PdfReader Reader [get]
 
AcroFields AcroFields [get]
 
bool FormFlattening [set]
 
bool FreeTextFlattening [set]
 
ArrayList Outlines [set]
 
string JavaScript [set]
 
virtual int ViewerPreferences [set]
 
byte[] XmpMetadata [set]
 
bool FullCompression [get]
 
- Properties inherited from iTextSharp.text.pdf.interfaces.IPdfViewerPreferences
int ViewerPreferences [set]
 

Detailed Description

Applies extra content to the pages of a PDF document. This extra content can be all the objects allowed in PdfContentByte including pages from other Pdfs. The original PDF will keep all the interactive elements including bookmarks, links and form fields.

It is also possible to change the field values and to flatten them. New fields can be added but not flattened.

Author
Paulo Soares (psoar.nosp@m.es@c.nosp@m.onsis.nosp@m.te.p.nosp@m.t)

Constructor & Destructor Documentation

◆ PdfStamper() [1/3]

iTextSharp.text.pdf.PdfStamper.PdfStamper ( PdfReader  reader,
Stream  os 
)

Starts the process of adding extra content to an existing PDF document.

Parameters
readerthe original document. It cannot be reused
osthe output stream
Exceptions
DocumentExceptionon error
IOExceptionon error

◆ PdfStamper() [2/3]

iTextSharp.text.pdf.PdfStamper.PdfStamper ( PdfReader  reader,
Stream  os,
char  pdfVersion 
)

Starts the process of adding extra content to an existing PDF document.

Parameters
readerthe original document. It cannot be reused
osthe output stream
pdfVersionthe new pdf version or '\0' to keep the same version as the original document
Exceptions
DocumentExceptionon error
IOExceptionon error

◆ PdfStamper() [3/3]

iTextSharp.text.pdf.PdfStamper.PdfStamper ( PdfReader  reader,
Stream  os,
char  pdfVersion,
bool  append 
)

Starts the process of adding extra content to an existing PDF document, possibly as a new revision.

Parameters
readerthe original document. It cannot be reused
osthe output stream
pdfVersionthe new pdf version or '\0' to keep the same version as the original document
appendif true appends the document changes as a new revision. This is only useful for multiple signatures as nothing is gained in speed or memory
Exceptions
DocumentExceptionon error
IOExceptionon error

Member Function Documentation

◆ AddAnnotation()

void iTextSharp.text.pdf.PdfStamper.AddAnnotation ( PdfAnnotation  annot,
int  page 
)

Adds an annotation of form field in a specific page. This page number can be overridden with PdfAnnotation#setPlaceInPage(int).

Parameters
annotthe annotation
pagethe page

◆ AddComments()

void iTextSharp.text.pdf.PdfStamper.AddComments ( FdfReader  fdf)

Adds the comments present in an FDF file.

Parameters
fdfthe FDF file
Exceptions
IOExceptionon error

◆ AddFileAttachment() [1/2]

void iTextSharp.text.pdf.PdfStamper.AddFileAttachment ( String  description,
byte[]  fileStore,
String  file,
String  fileDisplay 
)

Adds a file attachment at the document level. Existing attachments will be kept.

Parameters
descriptionthe file description
fileStorean array with the file. If it's null the file will be read from the disk
filethe path to the file. It will only be used if fileStore is not null
fileDisplaythe actual file name stored in the pdf
Exceptions
IOExceptionon error

◆ AddFileAttachment() [2/2]

void iTextSharp.text.pdf.PdfStamper.AddFileAttachment ( String  description,
PdfFileSpecification  fs 
)

Adds a file attachment at the document level. Existing attachments will be kept.

Parameters
descriptionthe file description
fsthe file specification

◆ AddSignature()

PdfFormField iTextSharp.text.pdf.PdfStamper.AddSignature ( String  name,
int  page,
float  llx,
float  lly,
float  urx,
float  ury 
)

Adds an empty signature.

Parameters
namethe name of the signature
pagethe page number
llxlower left x coordinate of the signature's position
llylower left y coordinate of the signature's position
urxupper right x coordinate of the signature's position
uryupper right y coordinate of the signature's position
Returns
a signature form field
Since
2.1.4

◆ AddViewerPreference()

virtual void iTextSharp.text.pdf.PdfStamper.AddViewerPreference ( PdfName  key,
PdfObject  value 
)
virtual

Adds a viewer preference

Parameters
preferencesthe viewer preferences
See also
PdfViewerPreferences::addViewerPreference

Implements iTextSharp.text.pdf.interfaces.IPdfViewerPreferences.

◆ Close()

void iTextSharp.text.pdf.PdfStamper.Close ( )

Closes the document. No more content can be written after the document is closed.

If closing a signed document with an external signature the closing must be done in the PdfSignatureAppearance instance.

Exceptions
DocumentExceptionon error
IOExceptionon error

◆ CreateSignature() [1/3]

static PdfStamper iTextSharp.text.pdf.PdfStamper.CreateSignature ( PdfReader  reader,
Stream  os,
char  pdfVersion 
)
static

Applies a digital signature to a document. The returned PdfStamper can be used normally as the signature is only applied when closing.

Note that the pdf is created in memory.

A possible use is:

KeyStore ks = KeyStore.getInstance("pkcs12");
ks.load(new FileInputStream("my_private_key.pfx"), "my_password".toCharArray());
String alias = (String)ks.aliases().nextElement();
PrivateKey key = (PrivateKey)ks.getKey(alias, "my_password".toCharArray());
Certificate[] chain = ks.getCertificateChain(alias);
PdfReader reader = new PdfReader("original.pdf");
FileOutputStream fout = new FileOutputStream("signed.pdf");
PdfStamper stp = PdfStamper.createSignature(reader, fout, '\0');
PdfSignatureAppearance sap = stp.getSignatureAppearance();
sap.setCrypto(key, chain, null, PdfSignatureAppearance.WINCER_SIGNED);
sap.setReason("I'm the author");
sap.setLocation("Lisbon");
// comment next line to have an invisible signature
sap.setVisibleSignature(new Rectangle(100, 100, 200, 200), 1, null);
stp.close();
Parameters
readerthe original document
osthe output stream
pdfVersionthe new pdf version or '\0' to keep the same version as the original document
Exceptions
DocumentExceptionon error
IOExceptionon error
Returns
a PdfStamper

◆ CreateSignature() [2/3]

static PdfStamper iTextSharp.text.pdf.PdfStamper.CreateSignature ( PdfReader  reader,
Stream  os,
char  pdfVersion,
string  tempFile 
)
static

Applies a digital signature to a document. The returned PdfStamper can be used normally as the signature is only applied when closing.

A possible use is:

KeyStore ks = KeyStore.getInstance("pkcs12");
ks.load(new FileInputStream("my_private_key.pfx"), "my_password".toCharArray());
String alias = (String)ks.aliases().nextElement();
PrivateKey key = (PrivateKey)ks.getKey(alias, "my_password".toCharArray());
Certificate[] chain = ks.getCertificateChain(alias);
PdfReader reader = new PdfReader("original.pdf");
FileOutputStream fout = new FileOutputStream("signed.pdf");
PdfStamper stp = PdfStamper.createSignature(reader, fout, '\0', new File("/temp"));
PdfSignatureAppearance sap = stp.getSignatureAppearance();
sap.setCrypto(key, chain, null, PdfSignatureAppearance.WINCER_SIGNED);
sap.setReason("I'm the author");
sap.setLocation("Lisbon");
// comment next line to have an invisible signature
sap.setVisibleSignature(new Rectangle(100, 100, 200, 200), 1, null);
stp.close();
Parameters
readerthe original document
osthe output stream or null to keep the document in the temporary file
pdfVersionthe new pdf version or '\0' to keep the same version as the original document
tempFilelocation of the temporary file. If it's a directory a temporary file will be created there. If it's a file it will be used directly. The file will be deleted on exit unless os is null. In that case the document can be retrieved directly from the temporary file. If it's null no temporary file will be created and memory will be used
Returns
a PdfStamper
Exceptions
DocumentExceptionon error
IOExceptionon error

◆ CreateSignature() [3/3]

static PdfStamper iTextSharp.text.pdf.PdfStamper.CreateSignature ( PdfReader  reader,
Stream  os,
char  pdfVersion,
string  tempFile,
bool  append 
)
static

Applies a digital signature to a document, possibly as a new revision, making possible multiple signatures. The returned PdfStamper can be used normally as the signature is only applied when closing.

A possible use for adding a signature without invalidating an existing one is:

KeyStore ks = KeyStore.getInstance("pkcs12");
ks.load(new FileInputStream("my_private_key.pfx"), "my_password".toCharArray());
String alias = (String)ks.aliases().nextElement();
PrivateKey key = (PrivateKey)ks.getKey(alias, "my_password".toCharArray());
Certificate[] chain = ks.getCertificateChain(alias);
PdfReader reader = new PdfReader("original.pdf");
FileOutputStream fout = new FileOutputStream("signed.pdf");
PdfStamper stp = PdfStamper.createSignature(reader, fout, '\0', new
File("/temp"), true);
PdfSignatureAppearance sap = stp.getSignatureAppearance();
sap.setCrypto(key, chain, null, PdfSignatureAppearance.WINCER_SIGNED);
sap.setReason("I'm the author");
sap.setLocation("Lisbon");
// comment next line to have an invisible signature
sap.setVisibleSignature(new Rectangle(100, 100, 200, 200), 1, null);
stp.close();
Parameters
readerthe original document
osthe output stream or null to keep the document in the temporary file
pdfVersionthe new pdf version or '\0' to keep the same version as the original document
tempFilelocation of the temporary file. If it's a directory a temporary file will be created there. If it's a file it will be used directly. The file will be deleted on exit unless os is null. In that case the document can be retrieved directly from the temporary file. If it's null no temporary file will be created and memory will be used
appendif true the signature and all the other content will be added as a new revision thus not invalidating existing signatures
Returns
a PdfStamper
Exceptions
DocumentExceptionon error
IOExceptionon error

◆ GetImportedPage()

PdfImportedPage iTextSharp.text.pdf.PdfStamper.GetImportedPage ( PdfReader  reader,
int  pageNumber 
)

Gets a page from other PDF document. Note that calling this method more than once with the same parameters will retrieve the same object.

Parameters
readerthe PDF document where the page is
pageNumberthe page number. The first page is 1
Returns
the template representing the imported page

◆ GetOverContent()

PdfContentByte iTextSharp.text.pdf.PdfStamper.GetOverContent ( int  pageNum)

Gets a PdfContentByte to write over the page of the original document.

Parameters
pageNumthe page number where the extra content is written
Returns
a PdfContentByte to write over the page of the original document

◆ GetPdfLayers()

Hashtable iTextSharp.text.pdf.PdfStamper.GetPdfLayers ( )

Gets the PdfLayer objects in an existing document as a Map with the names/titles of the layers as keys.

Returns
a Map with all the PdfLayers in the document (and the name/title of the layer as key)
Since
2.1.2

◆ GetUnderContent()

PdfContentByte iTextSharp.text.pdf.PdfStamper.GetUnderContent ( int  pageNum)

Gets a PdfContentByte to write under the page of the original document.

Parameters
pageNumthe page number where the extra content is written
Returns
a PdfContentByte to write under the page of the original document

◆ InsertPage()

void iTextSharp.text.pdf.PdfStamper.InsertPage ( int  pageNumber,
Rectangle  mediabox 
)

Inserts a blank page. All the pages above and including pageNumber will be shifted up. If pageNumber is bigger than the total number of pages the new page will be the last one.

Parameters
pageNumberthe page number position where the new page will be inserted
mediaboxthe size of the new page

◆ MakePackage() [1/2]

void iTextSharp.text.pdf.PdfStamper.MakePackage ( PdfCollection  collection)

Adds or replaces the Collection Dictionary in the Catalog.

Parameters
collectionthe new collection dictionary.

◆ MakePackage() [2/2]

void iTextSharp.text.pdf.PdfStamper.MakePackage ( PdfName  initialView)

This is the most simple way to change a PDF into a portable collection. Choose one of the following names:

Pass this name as a parameter and your PDF will be a portable collection with all the embedded and attached files as entries.

Parameters
initialViewcan be PdfName.D, PdfName.T or PdfName.H

◆ PartialFormFlattening()

bool iTextSharp.text.pdf.PdfStamper.PartialFormFlattening ( String  name)

Adds name to the list of fields that will be flattened on close, all the other fields will remain. If this method is never called or is called with invalid field names, all the fields will be flattened.

Calling setFormFlattening(true) is needed to have any kind of flattening.

Parameters
namethe field name
Returns
true if the field exists, false otherwise

◆ ReplacePage()

void iTextSharp.text.pdf.PdfStamper.ReplacePage ( PdfReader  r,
int  pageImported,
int  pageReplaced 
)

Replaces a page from this document with a page from other document. Only the content is replaced not the fields and annotations. This method must be called before getOverContent() or getUndercontent() are called for the same page.

Parameters
rthe PdfReader from where the new page will be imported
pageImportedthe page number of the imported page
pageReplacedthe page to replace in this document

◆ SetDuration()

void iTextSharp.text.pdf.PdfStamper.SetDuration ( int  seconds,
int  page 
)

Sets the display duration for the page (for presentations)

Parameters
secondsthe number of seconds to display the page. A negative value removes the entry
pagethe page where the duration will be applied. The first page is 1

◆ SetEncryption() [1/5]

void iTextSharp.text.pdf.PdfStamper.SetEncryption ( bool  strength,
String  userPassword,
String  ownerPassword,
int  permissions 
)

Sets the encryption options for this document. The userPassword and the ownerPassword can be null or have zero length. In this case the ownerPassword is replaced by a random string. The open permissions for the document can be AllowPrinting, AllowModifyContents, AllowCopy, AllowModifyAnnotations, AllowFillIn, AllowScreenReaders, AllowAssembly and AllowDegradedPrinting. The permissions can be combined by ORing them.

Parameters
strengthtrue for 128 bit key length, false for 40 bit key length
userPasswordthe user password. Can be null or empty
ownerPasswordthe owner password. Can be null or empty
permissionsthe user permissions
Exceptions
DocumentExceptionif anything was already written to the output

◆ SetEncryption() [2/5]

void iTextSharp.text.pdf.PdfStamper.SetEncryption ( byte[]  userPassword,
byte[]  ownerPassword,
int  permissions,
bool  strength128Bits 
)

Sets the encryption options for this document. The userPassword and the ownerPassword can be null or have zero length. In this case the ownerPassword is replaced by a random string. The open permissions for the document can be AllowPrinting, AllowModifyContents, AllowCopy, AllowModifyAnnotations, AllowFillIn, AllowScreenReaders, AllowAssembly and AllowDegradedPrinting. The permissions can be combined by ORing them.

Parameters
userPasswordthe user password. Can be null or empty
ownerPasswordthe owner password. Can be null or empty
permissionsthe user permissions
strength128Bitstrue for 128 bit key length, false for 40 bit key length
Exceptions
DocumentExceptionif anything was already written to the output

◆ SetEncryption() [3/5]

void iTextSharp.text.pdf.PdfStamper.SetEncryption ( byte[]  userPassword,
byte[]  ownerPassword,
int  permissions,
int  encryptionType 
)

Sets the encryption options for this document. The userPassword and the ownerPassword can be null or have zero length. In this case the ownerPassword is replaced by a random string. The open permissions for the document can be AllowPrinting, AllowModifyContents, AllowCopy, AllowModifyAnnotations, AllowFillIn, AllowScreenReaders, AllowAssembly and AllowDegradedPrinting. The permissions can be combined by ORing them.

Parameters
userPasswordthe user password. Can be null or empty
ownerPasswordthe owner password. Can be null or empty
permissionsthe user permissions
encryptionTypethe type of encryption. It can be one of STANDARD_ENCRYPTION_40, STANDARD_ENCRYPTION_128 or ENCRYPTION_AES128. Optionally DO_NOT_ENCRYPT_METADATA can be ored to output the metadata in cleartext
Exceptions
DocumentExceptionif the document is already open

Implements iTextSharp.text.pdf.interfaces.IPdfEncryptionSettings.

◆ SetEncryption() [4/5]

void iTextSharp.text.pdf.PdfStamper.SetEncryption ( int  encryptionType,
String  userPassword,
String  ownerPassword,
int  permissions 
)

Sets the encryption options for this document. The userPassword and the ownerPassword can be null or have zero length. In this case the ownerPassword is replaced by a random string. The open permissions for the document can be AllowPrinting, AllowModifyContents, AllowCopy, AllowModifyAnnotations, AllowFillIn, AllowScreenReaders, AllowAssembly and AllowDegradedPrinting. The permissions can be combined by ORing them.

Parameters
encryptionTypethe type of encryption. It can be one of STANDARD_ENCRYPTION_40, STANDARD_ENCRYPTION_128 or ENCRYPTION_AES128. Optionally DO_NOT_ENCRYPT_METADATA can be ored to output the metadata in cleartext
userPasswordthe user password. Can be null or empty
ownerPasswordthe owner password. Can be null or empty
permissionsthe user permissions
Exceptions
DocumentExceptionif the document is already open

◆ SetEncryption() [5/5]

void iTextSharp.text.pdf.PdfStamper.SetEncryption ( X509Certificate[]  certs,
int[]  permissions,
int  encryptionType 
)

Sets the certificate encryption options for this document. An array of one or more public certificates must be provided together with an array of the same size for the permissions for each certificate. The open permissions for the document can be AllowPrinting, AllowModifyContents, AllowCopy, AllowModifyAnnotations, AllowFillIn, AllowScreenReaders, AllowAssembly and AllowDegradedPrinting. The permissions can be combined by ORing them. Optionally DO_NOT_ENCRYPT_METADATA can be ored to output the metadata in cleartext

Parameters
certsthe public certificates to be used for the encryption
permissionsthe user permissions for each of the certicates
encryptionTypethe type of encryption. It can be one of STANDARD_ENCRYPTION_40, STANDARD_ENCRYPTION_128 or ENCRYPTION_AES128.
Exceptions
DocumentExceptionif the encryption was set too late

Implements iTextSharp.text.pdf.interfaces.IPdfEncryptionSettings.

◆ SetFullCompression()

void iTextSharp.text.pdf.PdfStamper.SetFullCompression ( )

Sets the document's compression to the new 1.5 mode with object streams and xref streams. It can be set at any time but once set it can't be unset.

◆ SetPageAction()

void iTextSharp.text.pdf.PdfStamper.SetPageAction ( PdfName  actionType,
PdfAction  action,
int  page 
)

Sets the open and close page additional action.

Parameters
actionTypethe action type. It can be PdfWriter.PAGE_OPEN or PdfWriter.PAGE_CLOSE
actionthe action to perform
pagethe page where the action will be applied. The first page is 1
Exceptions
PdfExceptionif the action type is invalid

◆ SetThumbnail()

void iTextSharp.text.pdf.PdfStamper.SetThumbnail ( Image  image,
int  page 
)

Sets the thumbnail image for a page.

Parameters
imagethe image
pagethe page
Exceptions
PdfExceptionon error
DocumentExceptionon error

◆ SetTransition()

void iTextSharp.text.pdf.PdfStamper.SetTransition ( PdfTransition  transition,
int  page 
)

Sets the transition for the page

Parameters
transitionthe transition object. A null removes the transition
pagethe page where the transition will be applied. The first page is 1

Member Data Documentation

◆ stamper

PdfStamperImp iTextSharp.text.pdf.PdfStamper.stamper
protected

The writer

Property Documentation

◆ AcroFields

AcroFields iTextSharp.text.pdf.PdfStamper.AcroFields
get

Gets the AcroFields object that allows to get and set field values and to merge FDF forms.

Returns
the AcroFields object

◆ FormFlattening

bool iTextSharp.text.pdf.PdfStamper.FormFlattening
set

Determines if the fields are flattened on close. The fields added with addAnnotation(PdfAnnotation,int) will never be flattened.

Parameters
flattrue to flatten the fields, false to keep the fields

◆ FreeTextFlattening

bool iTextSharp.text.pdf.PdfStamper.FreeTextFlattening
set

Determines if the FreeText annotations are flattened on close.

Parameters
flattrue to flatten the FreeText annotations, false (the default) to keep the FreeText annotations as active content.

◆ FullCompression

bool iTextSharp.text.pdf.PdfStamper.FullCompression
get

Gets the 1.5 compression status.

Returns
true if the 1.5 compression is on

◆ JavaScript

string iTextSharp.text.pdf.PdfStamper.JavaScript
set

Adds a JavaScript action at the document level. When the document opens all this JavaScript runs. The existing JavaScript will be replaced.

Parameters
jsthe JavaScript code

◆ MoreInfo

Hashtable iTextSharp.text.pdf.PdfStamper.MoreInfo
getset

Gets the optional String map to add or change values in the info dictionary.

Returns
the map or null An optional String map to add or change values in the info dictionary. Entries with null values delete the key in the original info dictionary
Parameters
moreInfoadditional entries to the info dictionary

◆ Outlines

ArrayList iTextSharp.text.pdf.PdfStamper.Outlines
set

Sets the bookmarks. The list structure is defined in SimpleBookmark.

Parameters
outlinesthe bookmarks or null to remove any

◆ Reader

PdfReader iTextSharp.text.pdf.PdfStamper.Reader
get

Gets the underlying PdfReader.

Returns
the underlying PdfReader

◆ RotateContents

bool iTextSharp.text.pdf.PdfStamper.RotateContents
getset

Checks if the content is automatically adjusted to compensate the original page rotation.

Returns
the auto-rotation status Flags the content to be automatically adjusted to compensate the original page rotation. The default is true.
Parameters
rotateContentstrue to set auto-rotation, false otherwise

◆ SignatureAppearance

PdfSignatureAppearance iTextSharp.text.pdf.PdfStamper.SignatureAppearance
get

Gets the signing instance. The appearances and other parameters can the be set.

Returns
the signing instance

◆ ViewerPreferences

virtual int iTextSharp.text.pdf.PdfStamper.ViewerPreferences
set

Sets the viewer preferences.

Parameters
preferencesthe viewer preferences
See also
PdfViewerPreferences::setViewerPreferences(int)

◆ Writer

PdfWriter iTextSharp.text.pdf.PdfStamper.Writer
get

Gets the underlying PdfWriter.

Returns
the underlying PdfWriter

◆ XmpMetadata

byte [] iTextSharp.text.pdf.PdfStamper.XmpMetadata
set

Sets the XMP metadata.

Parameters
xmp
See also
PdfWriter::setXmpMetadata(byte[])

The documentation for this class was generated from the following file: