Giter Site home page Giter Site logo

Hyperlinks in PDF about factur-x HOT 9 CLOSED

atgp avatar atgp commented on August 20, 2024
Hyperlinks in PDF

from factur-x.

Comments (9)

lucas-gp avatar lucas-gp commented on August 20, 2024

Did you find a solution for this problem ? To know if I need to check it
If not, could you give me an PDF example please ?

from factur-x.

wq9578 avatar wq9578 commented on August 20, 2024

A closing </a> tag seems to be missing.
(Also, PDF/A doesn't allow transparent objects, which might be relevant here.)

from factur-x.

wq9578 avatar wq9578 commented on August 20, 2024

I now encountered the same problem.
Links are not clickable anymore in the combined PDF.
The text is still printed in blue color (marked as link), but is not clickable.

The PDF/A standard itself permits links:

Can PDF/A files include links?

There's no problem with including links in a PDF/A file. It should be considered, however, that external links will likely become invalid over time.

https://www.pdfa.org/pdfa-faq/

from factur-x.

wq9578 avatar wq9578 commented on August 20, 2024

Example PDFs:

Created with atgp / factur-x (link not clickable)
ZUGFeRD.pdf

Source PDF (link clickable)
ZUGFeRD_part.pdf

Created with Mustang (link clickable)
ZUGFeRD.pdf

from factur-x.

lucas-gp avatar lucas-gp commented on August 20, 2024

Hi @wq9578,
It's seem it's linked to FPDI library that doesn't preserve external links
I found several link about it :

So maybe need to make a custom class (or enhance FpdfiFacturx class) to be able to preverse external links
Don't hesitate to contribute and make a merge request about it :)

from factur-x.

wq9578 avatar wq9578 commented on August 20, 2024

I have no experience with PDF editing in PHP for making a pull request.
But a quick internet search might suggest the following:
The FPDI library is used by FPDF, which is in turn used by mPDF. Since external links in PDF/A documents work well with mPDF (I tested it), you might either have a look at how mPDF uses (indirectly) the FPDI library, or use mPDF directly.

from factur-x.

JanSlabon avatar JanSlabon commented on August 20, 2024

In FPDI 2.4.0 you can import PDF pages with external links now: https://github.com/Setasign/FPDI/releases/tag/v2.4.0
For backwards compatibility you need to activate this. See here for more details: https://www.setasign.com/news-archive/fpdi-2.4.0-released/

from factur-x.

Related Issues (13)

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.