ramonwirsch / foprenderer Goto Github PK
View Code? Open in Web Editor NEWGradle Plugin for Validating XMLs and rendering them with Apache FOP
License: GNU General Public License v3.0
Gradle Plugin for Validating XMLs and rendering them with Apache FOP
License: GNU General Public License v3.0
> Cannot set the value of read-only property 'resources' for project ':doc:userguide' of type org.gradle.api.Project.
It seems like I should set resourcesBaseDir = file('resource')
instead of resources = file('resource')
which is the latest release as of 09 Nov 2022.
I would like to convert an HTML page to PDF using your plugin. However, I noticed that the transform process is quite slow. Via --debug I noticed that most time is spent waiting on HTTP connections, retrieving the DTD schemas for the input document.
The start of my input document looks like this:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Is there a way I can feed it the .dtd files locally so it wont try to download them over the heavily throttled w3.org connection?
Currently this project depends on FOP 1.1. Many improvements were delivered since. FOP 2.6 is the current release.
Probably as simple as replacing Xalan with Saxon.
Can not validate UBL. Reporting error:
> unknown protocol: urn
Configuration fragment
fopRenderer {
schemas {
schemaUBL {
files = file('tmp.xml')
schemaUri = 'urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'
offlineSchema = file('schemas/maindoc/UBL-Invoice-2.0.xsd')
}
}
...
Having a way of specifying an external FOP configuration files would be very useful.
Some tasks, such as registering fonts can only be achieved by configuring FOP. Since programmatic configuration is not a useful option for the fopRenderer plugin, using an external configuration is the way to go.
Hopefully this is something you would consider adding?
As suggested by @ramonwirsch in his recent addition to the README.
Volunteering to contribute.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.