Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: signintech/gopdf
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.34.0
Choose a base ref
...
head repository: signintech/gopdf
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.35.0
Choose a head ref
  • 3 commits
  • 7 files changed
  • 2 contributors

Commits on Jan 14, 2026

  1. feat(clip): add polygon clipping path support

    Add ClipPolygon() method for setting arbitrary polygon clipping paths.
    PDF operators: h (close), W (clip nonzero), n (end path).
    13rac1 committed Jan 14, 2026
    Configuration menu
    Copy the full SHA
    68125d0 View commit details
    Browse the repository at this point in the history
  2. feat(clip): add Save/RestoreGraphicsState for scoped clipping

    Add q/Q PDF operators to save and restore graphics state. This allows
    clipping paths to be scoped so they don't affect subsequent drawing.
    
    Usage:
        pdf.SaveGraphicsState()
        pdf.ClipPolygon(points)
        // draw clipped content
        pdf.RestoreGraphicsState()
        // subsequent drawing is not clipped
    13rac1 committed Jan 14, 2026
    Configuration menu
    Copy the full SHA
    1e37975 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2026

  1. Configuration menu
    Copy the full SHA
    22c1bfe View commit details
    Browse the repository at this point in the history
Loading