Giter Club home page Giter Club logo

Comments (4)

m32 avatar m32 commented on August 16, 2024

I haven't touched this piece of code since 2022, could there be another reason?
Missing fonts, damaged fonts, ... ?
Another version of python? (I have 3.11 now)
Or this piece of program (endesive/pdf/PyPDF2_annotate/pdfttf.py) has a problem and calculates character sizes incorrectly.

Without an example of the signed file and configuration, it's hard for me to find the reason.
Can you prepare an example?

from endesive.

schorschii avatar schorschii commented on August 16, 2024

Thanks for your response. I have 2 examples for you:
endesive-2.0.10.pdf
endesive-2.17.0.pdf

I see a difference in the signature, 2.0.10 uses /PDFANNOTATORFONT1 while 2.17.0 uses /Helvetica, but I don't have enough experience with the PDF format.

I'm using Python 3.10 on Ubuntu 22.04.

from endesive.

m32 avatar m32 commented on August 16, 2024

Adding new annotation methods does not properly handle PDF resources.
Now it works, but requires deeper analysis of annotating and saving resources (fonts, images, ...) to the pdf file.
There is a chance that something is not being saved.
Please check the git version.

from endesive.

schorschii avatar schorschii commented on August 16, 2024

The git version looks good, the signature text is visible again in all PDF viewers. In my tests, all embedded fonts and images are still there after singing.

Thanks for this quick fix!

from endesive.

Related Issues (20)

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.