Coder Social home page Coder Social logo

pdfsignature-master's Introduction

PDFSignature

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 People

Contributors

c4gd4s avatar

Watchers

 avatar  avatar

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