Comments (5)
Did you read the docs? http://jako.github.io/PDFResource/usage/
from pdfresource.
Does that work?
[[*create_pdf?pdfresource.pdfTpl='mytemplate']]
from pdfresource.
No, please read the docs. There is a section for the template on system or resource base inside: http://jako.github.io/PDFResource/usage/#pdf-content-template
from pdfresource.
Yes but Im not aware how to use the options. Do you have an example?
from pdfresource.
The default template could be changed by editing the chunk tplPDF
. The chunk name could be changed by a MODX system setting (read the docs for this).
A resource based PDF template chunk could be set with a JSON encoded array in a TV called pdf_options
. The TV name could be changed by a MODX system setting (read the docs for this). In this JSON string, you could set all system wide PDF options (read the docs for this). The JSON encoded array could be created i.e. with http://www.jsoneditoronline.org/
The following example changes the chunk name for the PDF template:
{
"pdfTpl": "tplPDFCustom"
}
from pdfresource.
Related Issues (20)
- Fatal error with PHP 7.0.8 HOT 2
- Error opening pdf on the fly HOT 10
- Using png image data HOT 9
- Do tv parameters work in pdfresource.SetHTMLFooter HOT 1
- Default font always 'dejavusanscondensed' HOT 3
- Package installation does not work HOT 4
- Could not create the pdf alias path HOT 1
- Fatal error: Allowed memory size HOT 17
- Failed to install on Modx 2.5.7 HOT 1
- Couldn't use Contexts HOT 2
- Memory loss HOT 1
- Using a snippet to populate the pdfOptions TV on the resource HOT 1
- Generate live PDF from snippet instead of html resource HOT 6
- pdf file for downloading is not formed HOT 2
- Can I pass the current date to the SetHTMLHeader? HOT 1
- Extra not saving resource as PDF HOT 1
- Failed to install on modx 2.7.1 HOT 3
- How to debug problems HOT 4
- Error in getParentPath HOT 3
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 pdfresource.