LayoutFarm / HtmlRenderer

C# HTML Layout and HTML Rendering Engine
http://layoutfarm.github.io/HtmlRenderer/
Other
185 stars 40 forks source link

Print to printer or pdf file #51

Open prepare opened 8 years ago

prepare commented 8 years ago

spec: 1. http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf

  1. from http://www.mactech.com/articles/mactech/Vol.15/15.09/PDFIntro/index.html (Pdf1.3)

b closepath, fill,and stroke path. B fill and stroke path. b closepath, eofill,and stroke path. B eofill and stroke path. BI begin image. BMC begin marked content. BT begin text object. BX begin section allowing undefined operators. c curveto. cm concat. Concatenates the matrix to the current transform. cs setcolorspace for fill. CS setcolorspace for stroke. d setdash. Do execute the named XObject. DP mark a place in the content stream, with a dictionary. EI end image. EMC end marked content. ET end text object. EX end section that allows undefined operators. f fill path. f eofill Even/odd fill path. g setgray (fill). G setgray (stroke). gs set parameters in the extended graphics state. h closepath. i setflat. ID begin image data. j setlinejoin. J setlinecap. k setcmykcolor (fill). K setcmykcolor (stroke). l lineto. m moveto. M setmiterlimit. n end path without fill or stroke. q save graphics state. Q restore graphics state. re rectangle. rg setrgbcolor (fill). RG setrgbcolor (stroke). s closepath and stroke path. S stroke path. sc setcolor (fill). SC setcolor (stroke). sh shfill (shaded fill). Tc set character spacing. Td move text current point. TD move text current point and set leading. Tf set font name and size. Tj show text. TJ show text, allowing individual character positioning. TL set leading. Tm set text matrix. Tr set text rendering mode. Ts set super/subscripting text rise. Tw set word spacing. Tz set horizontal scaling. T move to start of next line. v curveto. w setlinewidth. W clip. y curveto.

TABLE 1: PDF Page Markup Operators (Note: Equivalent PostScript operators are in boldface.)