PDF for UWP | ComponentOne
C1.Xaml.Pdf Namespace / C1PdfDocument Class
Properties Methods Events


In This Topic
    C1PdfDocument Class Members
    In This Topic

    The following tables list the members exposed by C1PdfDocument.

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Properties
     NameDescription
    Public PropertyGets or sets the compression level to use when saving the document. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public PropertyGets or sets the PDF/A conformance level.

    The default is none (the document does not conform to PDF/A).

    (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public PropertyOverridden. Gets or sets the index of the current page within the document.  
    Public PropertyGets the PdfDocumentInfo object that contains information about this document (author, etc). (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public PropertyGets or sets a value indicating how fonts should be encoded when saving the document. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public PropertyGets or sets the image quality to use when saving the document. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public PropertyGets a value indicating whether compression is used when saving the document. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public PropertyGets or sets the default page orientation for the document.  
    Public PropertyGets a rectangle that represents the surface of the current page (in points). (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public PropertyGets the collection of PdfPage objects that make up the document. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public PropertyOverridden. Gets or sets the default page size for the document (in points).  
    Public PropertyGets or sets the default page size for the document.  
    Public PropertyGets or sets the PDF Version of the generated document.

    By default the version is determined automatically based on which features are used in this document. Setting this property to a non-null string in the format "1.X" (where X is a digit from 0 to 9) overrides the automatic value with the specified one.

    Setting this property to null reverts to the default behavior.

    (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public PropertyGets or sets the rotate angle for drawing simple objects for the document in degree (from -360 to 360).  
    Public PropertyGets or sets whether all images should be saved in the Jpeg format. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public PropertyGets the PdfSecurity object that manages security for the current document (passwords, etc). (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public PropertyGets or sets a value indicating whether to embed fonts separately for each page of the document. The default is false, which produces smaller file sizes but in some rare cases may result in incorrect font substitutions.

    Note that if C1PdfDocumentBase.FontType is not Embedded, this property is not used.

    (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public PropertyGets or sets a value indicating whether to use temporary disk files to minimize memory usage. The default is false. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public PropertyGets or sets a value indicating whether to use font shaping for text characters of the document. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public PropertyGets the PdfViewerPreferences object that contains information about how the current document should be displayed. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded. Adds a file attachment to the current page.  
    Public MethodOverloaded. Adds a bookmark to the current page.  
    Public MethodOverloaded. Adds an AcroField to the current page.  
    Public MethodOverloaded. Adds a hyperlink to the current page.  
    Public MethodOverloaded. Adds an annotation item to the current page.  
    Public MethodOverloaded. Adds a hyperlink target to the current page.  
    Public MethodRestores the document to its initial state. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public MethodStart cliping use a path defined by points and types.  
    Public MethodStop path cliping.  
    Public MethodDraws an arc defined by an ellipse specified by a rectangle structure and two radial lines.  
    Public MethodDraws a Bezier spline defined by four point structures.  
    Public MethodDraws a series of Bezier splines from an array of point structures.  
    Public MethodOverloaded. Draws the specified Windows.UI.Xaml.Media.Imaging.WriteableBitmap object at the specified location, adjusting the image size as specified by the align and stretch parameters.  
    Public MethodOverloaded. Draws an ellipse defined by a bounding rectangle specified by a coordinate pair, a width, and a height.  
    Public MethodDraws a string by glyphs.  
    Public MethodOverloaded. Draws the specified Windows.UI.Xaml.Media.Imaging.WriteableBitmap object at the specified location, adjusting the image size as specified by the align and stretch parameters.  
    Public MethodOverloaded. Draws a line connecting the two points specified by coordinate pairs.  
    Public MethodDraws a series of line segments that connect an array of point structures.  
    Public MethodDraws a path defined by points and types.  
    Public MethodDraws a pie shape defined by an ellipse specified by a rectangle structure and two radial lines.  
    Public MethodDraws a polygon defined by an array of point structures.  
    Public MethodOverloaded. Draws a rectangle specified by a coordinate pair, a width, and a height.  
    Public MethodOverloaded. Draws the specified text string in the specified rectangle with the specified Windows.UI.Xaml.Media.Brush and Font objects using the formatting attributes of the specified StringFormat object.  
    Public MethodFills an arc defined by an ellipse specified by a rectangle structure and two radial lines.  
    Public MethodOverloaded. Fills an ellipse using the currently selected brush.  
    Public MethodFills a path defined by points and types.  
    Public MethodFills a pie shape defined by an ellipse specified by a rectangle structure and two radial lines.  
    Public MethodFills a polygon defined by an array of point structures using the specified fill mode.  
    Public MethodOverloaded. Fills the interior of a rectangle specified by a coordinate pair, a width, and a height.  
    Public MethodOverloaded. Measures the specified string when drawn with the specified Font object and formatted with the specified StringFormat object.  
    Public MethodStarts a new page. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public MethodRestores the clipping area to the state after the last call to SetClipRect.  
    Public MethodResets all dash patterns to default values. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public MethodSaves the Pdf document to a System.IO.Stream. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public MethodOpens an existing zip file stored in a Windows.Storage.StorageFile. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public MethodSets the clipping area.  
    Public MethodSets the dash pattern for a specific dash style. Values in pattern correspond to dashes and spaces, starting with the first dash. The actual length of each dash and space in the line is the product of the specified value and the width of the pen used to draw the line. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public MethodSets the PDF transform (write the matrix).  
    Public MethodWrites raw content into the Pdf stream for the current page. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Top
    Protected Methods
     NameDescription
    Protected Method (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Protected MethodRaises the C1PdfDocumentBase.GeneratingDocument event. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Protected MethodRaises the C1PdfDocumentBase.SavingDocument event. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Protected MethodFor internal use only. Resets current font, pen, and brush state. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Protected MethodFor internal use only. Sets the current brush color. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Protected Method (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Top
    Public Events
     NameDescription
    Public EventOccurs when the C1PdfDocument is about to render a Windows.UI.Xaml.FrameworkElement.  
    Public EventFires periodically while data is written into the PDF document. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Public EventFires while pages are written to the PDF stream after a call to the C1PdfDocumentBase.Save method. (Inherited from C1.Xaml.Pdf.C1PdfDocumentBase)
    Top
    See Also