Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabled internal links after signature PDF #162

Open
UglyRichard opened this issue Oct 11, 2024 · 1 comment
Open

Disabled internal links after signature PDF #162

UglyRichard opened this issue Oct 11, 2024 · 1 comment
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@UglyRichard
Copy link

UglyRichard commented Oct 11, 2024

Issue Description:

I'm using LaravelA1PdfSign to sign a PDF created with DomPDF. The PDF includes several internal links <a href="#id"> that work correctly before signing. However, once I apply the certificate to sign the document, the links stop functioning (are not clickable anymore).

It seems that the signing process affects the behavior of these internal links. I suspect this might be due to the integrity checks imposed by the digital signature, but I would like to know if there's any way to retain the functionality of the links after signing the PDF.

Steps to Reproduce:

Generate a PDF using DomPDF.
Add internal links using <a href="#id">.
Verify that the links work as expected in the unsigned PDF.
Sign the PDF using LaravelA1PdfSign.
Open the signed PDF and notice that the internal links no longer function.
Expected Behavior: The internal links should remain functional even after the PDF is signed.

Actual Behavior: The internal links stop working after signing the PDF.

Environment:

PHP: 8.2.4
Laravel: 10.41.0
DomPDF: 2.0.1
LaravelA1PdfSign: 10.0.10.1

@UglyRichard UglyRichard added bug Something isn't working help wanted Extra attention is needed labels Oct 11, 2024
@lsnepomuceno
Copy link
Owner

Hello @UglyRichard ,

I'm checking what causes the problem to apply the solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants