Code Monkey home page Code Monkey logo

Comments (9)

migueldeicaza avatar migueldeicaza commented on May 14, 2024 1

This looks very useful, we need to basically bind the SkDocument type.

from skiasharp.

tdenniston avatar tdenniston commented on May 14, 2024

Is anyone working on this? Otherwise I can take a crack at it, as this is something I need.

from skiasharp.

tdenniston avatar tdenniston commented on May 14, 2024

Update: I've written the C api but I don't know how to get the build to link libskia_windows with the pdf Skia project (generated from pdf.gyp).

from skiasharp.

mattleibow avatar mattleibow commented on May 14, 2024

Hey @tdenniston, have you managed to get the build going? The VS projects just need you to add a reference to the pdf vcxproj (and any dependencies). Basically, add the project to the solution, and then reference it in the libSkiaSharp project...

from skiasharp.

tdenniston avatar tdenniston commented on May 14, 2024

@mattleibow Hmm, I'm not sure I understand completely. (I'm still learning Windows development practices and Visual Studio). Which solution do I add pdf.vcxproj to? On a related note, I'm now seeing quite a few build problems since the UWP platform was added. I'm developing on Windows 7 but it seems to think I am on a UWP platform.

from skiasharp.

alanricker avatar alanricker commented on May 14, 2024

@mattleibow @migueldeicaza this sounds very useful as I need print also.
Would it be as simple as launching PDF in default browser via xamarin forms, or is there an easier cross-platform way?
Would we also need XPS for Windows WPF or UWP?
Thanks again for all your work on this.

from skiasharp.

mattleibow avatar mattleibow commented on May 14, 2024

@alanricker Not too sure exactly, but I do know that Windows UWP has a default PDF reader - Edge. They are discontinuing the PDF reader app, so PDF support is available right from the start

from skiasharp.

mattleibow avatar mattleibow commented on May 14, 2024

All right... I have done this in the native bit and wrapped the SkDocument and SkWStreams. I have a really basic PDF sample (just a single line of text). Just waiting for our CI to pick it up and then I will release a new version.

from skiasharp.

mattleibow avatar mattleibow commented on May 14, 2024

tvOS and PDF support was added in the release https://github.com/mono/SkiaSharp/releases/tag/v1.49.4-beta

from skiasharp.

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.