Enum PdfControlMergingMode
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
Specifies how to handle form fields when merging PDF documents.
public enum PdfControlMergingMode
Fields
Copy = 0Copy PDF controls to the resulting document "as is". That might lead to an incorrect PDF document if both source documents contain controls with the same full name(s).
CopyAsKids = 4Copy PDF controls and merge with existing controls having the same full name(s).
Merged controls are synchronized. I.e., they always have same values.
When merged controls have different values, the values from existing control are preferred (first win).
Controls of different types with the same full name are not merged. Such controls are copied using CopyWithRename mode.
The library merges or renames added controls only when they conflict with existing controls. For example, an appended document contains 2 controls with "textbox" name and a target document does not contain any controls. In that case, the library will add "textbox" controls without merging or renaming.
CopyWithRename = 1Rename the added PDF controls if the resulting document contains controls with the same full name(s).
The library renames added controls only when they conflict with existing controls. For example, an appended document contains 2 controls with "textbox" name and a target document does not contain any controls. In that case, the library will add "textbox" controls without renaming.
DoNotCopy = 3Do not copy PDF controls to the resulting document.
Flatten = 2Flatten the added PDF controls in the resulting document.
Remarks
The Combine PDF forms section of the Merge PDF documents in C# and VB.NET article describes possible merge strategies.
Check out the other articles and code samples on the Edit PDF page.