Giter Club home page Giter Club logo

Comments (5)

wieslawsoltes avatar wieslawsoltes commented on June 18, 2024 1

The version of skia pdf renderer that current SkiaSharp uses isn't best, it usually produces large pdf files and we use bit outdated skia, I would guess it got improved a lot. If you can repro that in latest skia I guess it would be nice to report upstream.

from svg.skia.

lol768 avatar lol768 commented on June 18, 2024 1

Fix confirmed with

<PackageReference Include="Svg.Skia" Version="1.0.0.10"/>

Loading SVG
Generated PDF to ./generated.pdf
Size of generated.pdf: 4046 bytes
Number of /Image instances in generated.pdf: 0
Number of /PatternType instances in generated.pdf: 0
Size of gold.pdf: 4046 bytes
Number of /Image instances in gold.pdf: 0
Number of /PatternType instances in gold.pdf: 0

Cheers!

from svg.skia.

wieslawsoltes avatar wieslawsoltes commented on June 18, 2024

Will release version 1.0.0.10 soon on NuGet so you can test.

from svg.skia.

lol768 avatar lol768 commented on June 18, 2024

Many thanks, appreciate it

Out of interest @wieslawsoltes - do you think there's an argument this is also a bug in Skia's PDF backend? Like, I still don't see why the shaders you were using should have caused a fallback to rasterisation at all: there's nothing in the docs here to suggest so: https://skia.org/docs/user/sample/pdf/ (unless "non-gradient SkShader" covers just basic color shader.. I don't see why it should though, gradients are more complicated than colour shaders)

Tempting to open a bug upstream too

from svg.skia.

wieslawsoltes avatar wieslawsoltes commented on June 18, 2024

@lol768 v1.0.0.10 is on NuGet

from svg.skia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.