djpate / docxgen Goto Github PK
View Code? Open in Web Editor NEWA class that enables you to generate a docx based on a template
A class that enables you to generate a docx based on a template
Hi there, was doing some tests and found that lil bug, has no support for some characters like ñ/Ñ... Could u take a look at that..?.. when i trie to open the .docs just says "The file XYZ.docx cannot be opened because there are problems with the contents"...
Really need that lil thing working...
Good Luck sir...
Hey, when i try to save my docx with some HTML code, it gives me an error when i try to open the file on the MS Word. I'm using the CKEditor to write the text and then i save it to the db and try to save it to docx.
i have just made docx file so now i need save to pdf, is it?
Is it also possible to use templates in templates?
For example, I have a letter that consists an address header, a body content and a greeting (footer) and all 3 can be different of contents and/or layout.
I want to create a letter create system where you have 1 main layout page (where the margin etc. are set) and the address can differ (a random customer or supplier/company), and body content which can be a couple different letters with some different placeholders.
Is this possible?
Thanks!
we have a table template and want to assign the values from user input, how to do that. thanx
Currently I see that tmpDir
property in the class is declared as private
and there is no method for assigning path to it. I want to change it to other folder and I have no options other than editing the source. I suggest to make it at least protected
for being able to override by extending base class or add a method that makes possible changing this variable.
I have a relatively simple block
[start quotes]
[end quotes]
If I put a space between #quantity_here# and #price_here#, both values will get replaced in each block I create.
If I put a tab between the two, only the #quantity_here# is replaced. The other value is ignored.
I tried doing this:
[start quotes]
[end quotes]
but got an error of index p undefined.
Good tool, i am planning use it!
But I have a problem: if i modify "example.php" found in djpate-phpdocx-5006fb8 like this:
.... omissis...
$phpdocx->assignNestedBlock("pets",array(array("#PETNAME#"=>"Rox"),array("#PETNAME#"=>"Bob")),array("members"=>2));
// would create a block pets for jane doe with 2 pets: rox and bob
... omissis....
This don't work as expected, car it produces:
---------------- omissis
Rox
Favorite toys
$phpdocx->assignNestedBlock("toys",array(array("#TOYNAME#"=>"Frisbee")),array("members"=>2,"pets"=>1));
// would create a block toy for rox
$phpdocx->assignNestedBlock("toys",array(array("#TOYNAME#"=>"Frisbee")),array("members"=>2,"pets"=>2));
// would create a block toy for bob
A bug or I mistake?
Greetings.
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.