dagi3d / acts_as_flying_saucer Goto Github PK
View Code? Open in Web Editor NEWacts_as_flying_saucer is a Ruby On Rails plugin that allows to save rendered views as pdf documents using the Flying Saucer java library.
License: MIT License
acts_as_flying_saucer is a Ruby On Rails plugin that allows to save rendered views as pdf documents using the Flying Saucer java library.
License: MIT License
i cant write any of this characters: ñ á é ó , or & , looks like it stop working when i write it on my view , i try whit & or á and it doesn't work :(
options = sources.extract_options!.stringify_keys
options[:media] = 'print' if options[:media].blank?
In the first line, every key is converted to a string, in the second line you look for the :media key
Maybe
options["media"] ||= 'print'
is better?
first , sorry my poor English:)
the flying saucer has issue in params , like QR code image url in Google
http://chart.googleapis.com/chart?chs=50x50&cht=qr&chl=Hello+world&chld=L|1&choe=UTF-8
must change be
"&" change to "&" , if not , will get error message of java , like this :
'The reference to entity "cht" must end with the ';' delimiter.'
Exception in thread "main" org.xhtmlrenderer.util.XRRuntimeException: Can't load the XML resource (using TRaX transformer). org.xml.sax.SAXParseException: The reference to entity "cht" must end with the ';' delimiter.
& it's can be helper(filter) to fix this issue :)
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.