Comments (9)
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.
A closing </a>
tag seems to be missing.
(Also, PDF/A doesn't allow transparent objects, which might be relevant here.)
from factur-x.
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.
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.
Hi @wq9578,
It's seem it's linked to FPDI library that doesn't preserve external links
I found several link about it :
- https://stackoverflow.com/questions/29968366/preserve-internal-links-using-fpdi
- https://gist.github.com/andreyvit/2020422
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.
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.
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)
- Issue on installation via composer HOT 4
- checkFacturxXsd returns true for wrong profiles if XML is valid HOT 1
- Could you validate your pull requests HOT 3
- Extended missing in FACTURX_PROFIL_TO_XMP HOT 1
- Generated file name HOT 4
- Error when I do not check the xsd HOT 4
- Valid example Xml files HOT 5
- Deprecated warning HOT 3
- Conflict due to dependency on old package HOT 3
- XMP not valid with https://services.fnfe-mpe.org/tools HOT 3
- Glyph widths in font dictionary are not consistent with embedded font program widths HOT 1
- Extract Factur-X XML from a PDF :: not working HOT 1
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.
from factur-x.