Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SkDocument PDF output support #33

Closed
rocuh opened this issue Mar 1, 2016 · 9 comments
Closed

SkDocument PDF output support #33

rocuh opened this issue Mar 1, 2016 · 9 comments

Comments

@rocuh
Copy link

rocuh commented Mar 1, 2016

This looks very cool, PDF output via SkDocument would be a useful addition. Although it is not exposed via the Skia C API it looks at first glance to be a pretty simple class.

@migueldeicaza
Copy link
Contributor

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

@tdenniston
Copy link
Contributor

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

@tdenniston
Copy link
Contributor

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).

@mattleibow
Copy link
Contributor

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...

@tdenniston
Copy link
Contributor

@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.

@alanricker
Copy link

@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.

@mattleibow
Copy link
Contributor

@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

@mattleibow
Copy link
Contributor

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.

@mattleibow
Copy link
Contributor

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

@ghost ghost locked as resolved and limited conversation to collaborators Aug 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants