Pdf |
When setting a value, instance of a PdfContentFormat won't actually be stored in this PdfVisualContentElement, but the data to which the instance points to will be copied. This enables easy copying of a set of formatting properties from one PdfVisualContentElement to another.
Also, when setting a value on a PdfTextContent, the actual font and size (retrieved with GetFont(Double) method) remain unchanged because new font might not contain all the necessary information to correctly position, render and/or convert to Unicode all characters of the PdfTextContent. As a workaround, set font and size directly by using SetFont(PdfBasicFont, Double) method.
If value that is being set comes from a PdfVisualContentElement that is contained in another PdfDocument, this property setter will automatically clone all PdfContentResources (PdfBasicFonts, PdfPatterns, PdfShadings, and PdfColorSpaces) contained in the PdfContentFormat and associate the clones with the current PdfDocument.