Comments (9)
This looks very useful, we need to basically bind the SkDocument type.
from skiasharp.
Is anyone working on this? Otherwise I can take a crack at it, as this is something I need.
from skiasharp.
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.
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.
@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.
@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.
@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.
All right... I have done this in the native bit and wrapped the SkDocument
and SkWStream
s. 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.
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)
- [BUG] SKXamlCanvas PointerwheelChanged not respecting DPI?
- Size in OnSizeAllocated of SKCanvasView in .NET 9.0 / SkiaSharp 3.0 Preview 2.1 does not match value returned in MeasureOverride HOT 1
- [CRASH] System.NullReferenceException when Invalidating an SKGLView after porting Xamarin.Forms app to MAUI HOT 4
- [BUG] SKCanvasView's PaintSurface is being called even when hidden from view upon invalidating surface of another SKCanvasView HOT 4
- [BUG] On iOS only, .NET 9.0 / SkiaSharp 3.0 SKCanvasView inside a custom control does not draw itself upon first appearance of the first page HOT 1
- [BUG] XAML Live Preview for Android shows most SKCanvasViews distorted (Visual Studio 2022 17.10 Preview 2 / .NET 9.0 Preview 2)
- [FEATURE] Support Direct3D HOT 4
- [BUG] `SKNativeObject` instances are not kept alive during native API calls
- [BUG] Annoying warning on .NET Framework 4.8 project with SkiaSharp 2.88.6 or 2.88.7 HOT 17
- [BUG] Text Missing When Running From AWS Lambda HOT 3
- [BUG] SkiaSharp 3.0 Preview 3.1 crashes the release version of the .NET MAUI app at start, debug works fine HOT 9
- [BUG] Drawing is warped during window resize on NVIDIA graphics card
- Canvas Info shows huge size when using Chrome Debugger and using Device Emulation
- [BUG] Build outputs duplicate native libraries HOT 2
- Skia Blazor Runs in debugger but not when deployed
- [BUG] SKGLElement gives black screen on Intel integrated graphics
- [BUG] SKGLView on .NET MAUI is missing a handler (the return) HOT 6
- [BUG] On iOS, with .NET 9.0 Preview 2 and 3 and SkiaSharp 3.0 Preview 2.1 / 3.1, SKGLView corrupts SkiaSharp memory and stops SkiaSharp from functioning HOT 7
- [BUG] The position draw on SKXamCanvas is not correct. #1585 Was this a bug that you worked around? HOT 3
- [PERFORMANCE] On iOS, layout speed of pages with SKGLView is slow, making layout wobbly at start (SKCanvasView is instantaneous)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skiasharp.