Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update for Plines#27

Merged
DomCR merged 6 commits into
masterDomCR/ACadSharp.Pdf:masterfrom
plinesDomCR/ACadSharp.Pdf:plinesCopy head branch name to clipboard
Nov 25, 2025
Merged

Update for Plines#27
DomCR merged 6 commits into
masterDomCR/ACadSharp.Pdf:masterfrom
plinesDomCR/ACadSharp.Pdf:plinesCopy head branch name to clipboard

Conversation

@DomCR

@DomCR DomCR commented Nov 5, 2025

Copy link
Copy Markdown
Owner

Description

General writer update.

DomCR added 6 commits November 5, 2025 13:55
Updated the ACadSharp submodule reference to commit f2c81c4c50763df8dfd3167bfc0f7fe94700fae2.

Refactored polyline vertex processing in `PdfPen.cs`:
- Replaced `polyline.Vertices.Select` with `polyline.GetPoints<XYZ>` to leverage `ArcPrecision` configuration.
- Applied transformations more efficiently to improve accuracy and maintainability.
Refactored `PdfPen.cs` to improve text object handling:
- Replaced old `MText` processing logic with a new implementation.
- Added support for text leading (`TL`) and line-by-line rendering.
- Updated default text rendering to use `TextString` (`Tj`).

Enhanced `PdfKey.cs` with new PDF operator constants:
- Added `BasicTextStart` (`BT`) and `BasicTextEnd` (`ET`).
- Introduced `TextTranslation` (`Td`), `TypeFont` (`Tf`), and `TextString` (`Tj`).

These changes align the code with PDF specifications and improve modularity.
Replaced hardcoded PDF operators with the `PdfKey.TextString` constant to improve maintainability and consistency. Added a call to `this.appendXY` to explicitly define the text insertion point in the PDF content stream, enhancing text placement accuracy. Updated `MText` handling to use the new constant for appending text lines.
@DomCR
DomCR merged commit 9250577 into master Nov 25, 2025
5 checks passed
@DomCR
DomCR deleted the plines branch November 25, 2025 09:06
@DomCR DomCR added the enhancement New feature or request label Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.