Class ReplacePagesParams.Builder
Builds a ReplacePagesParams instance.
Inheritance
Namespace: Adobe.PDFServicesSDK.pdfjobs.parameters.replacepages
Assembly: Adobe.PDFServicesSDK.Doc.dll
Syntax
public class Builder
Constructors
Builder(IAsset)
Constructs a Builder
instance.
Declaration
public Builder(IAsset asset)
Parameters
Type | Name | Description |
---|---|---|
IAsset | asset |
Methods
AddPagesForReplace(IAsset, PageRanges, Int32)
Adds the specified pages of the input PDF file to be replaced at the specified page of the base PDF file
This method can be invoked multiple times with the same or different input PDF files.
Declaration
public ReplacePagesParams.Builder AddPagesForReplace(IAsset inputAsset, PageRanges pageRanges, int basePage)
Parameters
Type | Name | Description |
---|---|---|
IAsset | inputAsset | a PDF IAsset for insertion; can not be null |
PageRanges | pageRanges | PageRanges of the input PDF file; can not be null or empty |
System.Int32 | basePage | page of the base PDF file; can not be null |
Returns
Type | Description |
---|---|
ReplacePagesParams.Builder |
AddPagesForReplace(IAsset, Int32)
Adds all the pages of the input PDF file to be replaced at the specified page of the base PDF file.
This method can be invoked multiple times with the same or different input PDF files.
Declaration
public ReplacePagesParams.Builder AddPagesForReplace(IAsset inputAsset, int basePage)
Parameters
Type | Name | Description |
---|---|---|
IAsset | inputAsset | a PDF IAsset for insertion; can not be null |
System.Int32 | basePage | page of the base PDF file; can not be null |
Returns
Type | Description |
---|---|
ReplacePagesParams.Builder | this Builder instance to add any additional parameters |
Build()
Builds a new ReplacePagesParams instance from the current state of this builder.
Declaration
public ReplacePagesParams Build()
Returns
Type | Description |
---|---|
ReplacePagesParams | A new ReplacePagesParams instance |