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] 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)
- [BUG] SkiaSharp 2.88.8 (Xamarin) crashes randomly with Mali GPUs HOT 4
- [BUG] SKPaint's IsAntiAlisasing is on on Android but off on iOS by default (Xamarin / SkiaSharp 2.88.8) HOT 1
- [BUG] SkiaSharp crashes in WebAssembly if building with non-Release/Debug build config HOT 1
- [BUG] Canvas.DrawPath Cause Memory Leak on Windows 11 HOT 1
- [BUG] SKBitmap.ColorSpace is always null. Unable to check for CMYK, RGB, etc. HOT 1
- [BUG] CR2 image orientation being detected incorrectly.
- [BUG] Decoding fails with tif files
- [BUG] <title>2.80.3 Excellent performance 300+FPS, 2.88.8 poor performance 30+FPS HOT 1
- [BUG] Horizontal lines disappear when zoomed in HOT 1
- [BUG] "Handler not found for view SkiaSharp.Views.Maui.Controls.SKGLView."
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.