When Scale=1, the using is the point (1/72 of an inch).įont size is not affected by scale, it is always in points.ĭefines the type of pdf being created. This is the standard GDI+ behavior, when StringFormat.LineAlignment=StringAlignment.Far.Ī scale factor to change X and Y coordinates. When true, all text will be drawn above the y coordinate. Font descent (for example the lower part of a "p") will be below 100, and the ascent (the upper part) will be above. For example, DrawString(., y=100.) will draw a string with its base at 100. When false, (the default) text base will be at the y coordinate. When false, the Y origin is at the bottom and it grows up into the page. When true, the y axis origin corresponds to the upper corner of a sheet and bigger Y coordinates will move down on the paper. Note that once NewPage() (or BeginDoc() for the first page) is called, the page size will remain constant for that page. You can change it *before* calling NewPage() and it will change for the new sheets. Set it to true to compress the text on the generated pdf file. Removes all existing attachments in the writer. Must be finished with a call to TagContentEndĮnds marking content which started with TagContentBeginĪttachFile(String, String, String, TPdfAttachmentKind)ĪttachFile(String, String, String, DateTime, TPdfAttachmentKind, TPdfAttachmentDataProviderDelegate) Marks the start of a content tag inside a stream. Note: This method must be called before calling BeginDoc Signs the pdf documents with the specified TPdfSignature or TPdfVisibleSignature. Restores the graphic state saved by a SaveState call. Be sure to always call RestoreState each time you call this method. You will probably want to use Transform(TPointF) to find out the coordinates of a point. This matrix is the real one, and does not consider things like YAxisGrowsDown or Scale. The elements in this matrix are similar to the ones returned by "System.Drawing.Drawing2D.Matrix.Elements" and have the same meaning. Intersects the clipping area with multiple bezier regions.ĭrawImage(TUIImage, TUIRectangle, Stream)ĭrawImage(TUIImage, TUIRectangle, Stream, Int64, Boolean) Intersects the clipping area with a bezier region. Intersects the clipping area with a polygon. Intersect the clip region with a rectangle specified by a pair of coordinates, a width, and a height. There is no command to reset or expand a clipping region, you need to use SaveState and RestoreState Intersects the current clipping region with the new one. If Brush is not null, the shape will be closed for filling.ĭraws and/or fills a polygon. (1/72 of an inch * Scale)ĭraws an array of line connecting pairs of points.įills the interior of a rectangle specified by a pair of coordinates, a width, and a height.ĭraws a rectangle specified by a coordinate pair, a width, and a height.ĭraws and fills a rectangle specified by a coordinate pair, a width, and a height.ĭraws and/or fills a bezier path. Returns the font white space on points * Scale. Returns the font height on points * Scale. Returns the size of a string in points * Scale. The new list will be copied, so you can change the old list after setting it and it will not affect the file. Replaces the bookmarks on the file with other list. You need to use SetBookmarks to replace the new list. Note that this will return a COPY of the bookmarks, so changing them will not change them in the file. Hyperlink(Double, Double, Double, Double, Int32, Double, Double) Hyperlink(Double, Double, Double, Double, Uri) Hyperlink(Double, Double, Double, Double, String) All following commands will go to the new page.ĭrawString(String, TUIFont, TUIBrush, Double, Double)ĭrawString(String, TUIFont, TUITextDecoration, TUIBrush, Double, Double)ĭrawString(String, TUIFont, TUIPen, TUIBrush, Double, Double)ĭrawString(String, TUIFont, TUITextDecoration, TUIPen, TUIBrush, Double, Double) After this you can call DrawString(String, TUIFont, TUIBrush, Double, Double), NewPage, etc.Īlways end the document with a call to EndDoc and then remember to close the stream.Īlways call this method to write the final part of a pdf file.Ĭloses the active page and creates a new one. Call this method before starting the output.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |