cpdf-source/dotnetsplits/c09.tex

124 lines
2.6 KiB
TeX
Raw Normal View History

2022-03-07 18:16:03 +01:00
CHAPTER 8. Logos, Watermarks and Stamps
Cpdf.stampOn(Cpdf.Pdf, Cpdf.Pdf, List{Int32})
2022-03-09 13:07:27 +01:00
Stamps stamp_pdf on top of all the pages in the document which are in the
range. The stamp is placed with its origin at the origin of the target
document.
2022-03-07 18:16:03 +01:00
Cpdf.stampUnder(Cpdf.Pdf, Cpdf.Pdf, List{Int32})
2022-03-09 13:07:27 +01:00
Stamps stamp_pdf under all the pages in the document which are in the range.
The stamp is placed with its origin at the origin of the target document.
2022-03-07 18:16:03 +01:00
2022-03-09 13:07:27 +01:00
Cpdf.stampExtended(Cpdf.Pdf, Cpdf.Pdf, List{Int32}, Boolean, Boolean,
Cpdf.Position, Boolean)
2022-03-07 18:16:03 +01:00
2022-03-09 13:07:27 +01:00
A stamping function with extra features. - isover true, pdf goes over pdf2,
isover false, pdf goes under pdf2 - scale_stamp_to_fit scales the stamp to fit
the page - pos gives the position to put the stamp - relative_to_cropbox: if
true, pos is relative to cropbox not mediabox.
2022-03-07 18:16:03 +01:00
Cpdf.combinePages(Cpdf.Pdf, Cpdf.Pdf)
2022-03-09 13:07:27 +01:00
Combines the PDFs page-by-page, putting each page of 'over' over each page of
'under'.
2022-03-07 18:16:03 +01:00
Cpdf.Font
Standard fonts
Cpdf.Font.TimesRoman
Times Roman
Cpdf.Font.TimesBold
Times Bold
Cpdf.Font.TimesItalic
Times Italic
Cpdf.Font.TimesBoldItalic
Times Bold Italic
Cpdf.Font.Helvetica
Helvetica
Cpdf.Font.HelveticaBold
Helvetica Bold
Cpdf.Font.HelveticaOblique
Helvetica Oblique
Cpdf.Font.HelveticaBoldOblique
Helvetica Bold Oblique
Cpdf.Font.Courier
Courier
Cpdf.Font.CourierBold
Courier Bold
Cpdf.Font.CourierOblique
Courier Oblique
Cpdf.Font.CourierBoldOblique
Courier Bold Oblique
Cpdf.Justification
Justifications
Cpdf.Justification.LeftJustify
Left justify
Cpdf.Justification.CentreJustify
Centre justify
Cpdf.Justification.RightJustify
Right justify
2022-03-09 13:07:27 +01:00
Cpdf.addText(Boolean, Cpdf.Pdf, List{Int32}, String, Cpdf.Position, Double,
Int32, Cpdf.Font, Double, Double, Double, Double, Boolean, Boolean, Boolean,
Double, Cpdf.Justification, Boolean, Boolean, String, Double, Boolean)
2022-03-07 18:16:03 +01:00
Adds text to the pages in the given range.
2022-03-09 13:07:27 +01:00
Cpdf.addTextSimple(Cpdf.Pdf, List{Int32}, String, Cpdf.Position, Cpdf.Font,
Double)
2022-03-07 18:16:03 +01:00
Adds text with most parameters default.
Cpdf.removeText(Cpdf.Pdf, List{Int32})
2022-03-09 13:07:27 +01:00
Removes any text added by cpdf from the given pages.
2022-03-07 18:16:03 +01:00
Cpdf.textWidth(Cpdf.Font, String)
Returns the width of a given string in the given font in thousandths of a
point.
Cpdf.addContent(String, Boolean, Cpdf.Pdf, List{Int32})
2022-03-09 13:07:27 +01:00
Adds page content before (if true) or after (if false) the existing content to
pages in the given range in the given PDF.
2022-03-07 18:16:03 +01:00
Cpdf.stampAsXObject(Cpdf.Pdf, List{Int32}, Cpdf.Pdf)
2022-03-09 13:07:27 +01:00
Stamps stamp_pdf onto the pages in the given range in pdf as a shared Form
XObject. The name of the newly-created XObject is returned.