THotPDF.RegisterLineGraphicsState

THotPDF

 

傳回頂部

此方法會建立包含 /LW、/LC、/LJ 與 /ML entries 的 ExtGState,分別用於 line width、line cap、line join 與 miter limit。傳回的 name 在檔案內穩定,例如 GS1,並會在呼叫 SetGraphicsState 時附加到頁面的 Resources/ExtGState dictionaryLineWidth 與

 

 

說明

此方法會建立包含 /LW、/LC、/LJ 與 /ML entries 的 ExtGState,分別代表 line width、line cap、line join 與 miter limit。傳回的 name 在 document 內穩定,例如 GS1,並會在呼叫 SetGraphicsState 時附加到 page 的 Resources/ExtGState dictionary

當多個 drawing regions 應共用相同 stroke geometry,而不想在每條 path 前重複 page-level setters 時,請使用此方法

LineWidth 與 MiterLimit 必須為 non-negative。helper 要求 PDF 1.2 或更新版本,符合 PDF ExtGState resource model。自 HotPDF v2.121.8 起可用/LJ, and /ML entries for line width, line cap, line join, and miter limit. The returned name is stable within the document, such as GS1, and is attached to a page's Resources/ExtGState dictionary when SetGraphicsState is called.

Use this when multiple drawing regions should share the same stroke geometry without repeating page-level setters before every path.

LineWidth and MiterLimit must be non-negative. The helper requires PDF 1.2 or later, matching the PDF ExtGState resource model. Available since HotPDF v2.121.8.