Add a signature to a PDF using PDFKit in Swift Improvement needed: The signature must be adjustable i mean it must be draggable to sign anywhere on the PDF
pdfsignature-master's Introduction
pdfsignature-master's People
pdfsignature-master's Issues
Crash when using pdfDocument.dataRepresentation().
Hi,
I referenced this repo to add the signature feature in my PDF reader. But I found a bug when I add image annotation on PDFDocument.
Take a scenario: a large PDF document was loaded in the memory and we need to save the document in repeating time. If use pdfDocument writeTo(url:) directly, the screen will blink which will give user a bad experience. So I used the background thread to save. The crash happened on that time, when use dataPresentation, it will work on sub-thread but not main thread, so the work thread cannot access the image(UIImage) of ImageStampAnnotation.
My solution on solving the issue on access UIImage is to use CG to draw the image to mock the UIImage, which is not a good solution and not suitable for signature.
In the other hands, I think may we should insert the image into the pdfDocument.data using UIGraphicPDFContext API to insert the signature image to the document which won't be modified after user making sure.
So, can you help me to figure this issue out? Thanks.
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.