本文整理汇总了C#中iTextSharp.text.pdf.PdfStamperImp类的典型用法代码示例。如果您正苦于以下问题:C# PdfStamperImp类的具体用法?C# PdfStamperImp怎么用?C# PdfStamperImp使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PdfStamperImp类属于iTextSharp.text.pdf命名空间,在下文中一共展示了PdfStamperImp类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PageStamp
internal PageStamp(PdfStamperImp stamper, PdfReader reader, PdfDictionary pageN) {
this.pageN = pageN;
pageResources = new PageResources();
PdfDictionary resources = pageN.GetAsDict(PdfName.RESOURCES);
pageResources.SetOriginalResources(resources, stamper.namePtr);
}
示例2: StampContent
/** Creates a new instance of StampContent */
internal StampContent(PdfStamperImp stamper, PdfStamperImp.PageStamp ps)
: base(stamper)
{
this.ps = ps;
pageResources = ps.pageResources;
}
示例3: XmlSignatureAppearance
/**
* Constructs XmlSignatureAppearance object.
* @param writer the writer to which the signature will be written.
*/
internal XmlSignatureAppearance(PdfStamperImp writer) {
this.writer = writer;
}
示例4: MergeResources
internal static void MergeResources(PdfDictionary result, PdfDictionary source, PdfStamperImp writer) {
PdfDictionary dic = null;
PdfDictionary res = null;
PdfName target = null;
for (int k = 0; k < mergeTarget.Length; ++k) {
target = mergeTarget[k];
PdfDictionary pdfDict = source.GetAsDict(target);
if ((dic = pdfDict) != null) {
if ((res = (PdfDictionary)PdfReader.GetPdfObject(result.Get(target), result)) == null) {
res = new PdfDictionary();
}
res.MergeDifferent(dic);
result.Put(target, res);
if (writer != null)
writer.MarkUsed(res);
}
}
}
示例5: PdfSignatureAppearance
/**
* Constructs a PdfSignatureAppearance object.
* @param writer the writer to which the signature will be written.
*/
public PdfSignatureAppearance(PdfStamperImp writer) {
this.writer = writer;
signDate = DateTime.Now;
fieldName = GetNewSigName();
signatureCreator = Version.GetInstance().GetVersion;
}