Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    ZolSzi
    @ZolSzi
    @Narsul , Sorry I was at a conference, haven't had a chance to look at it yet. I'll try to make time today to try it out and I'll update you after. Thanks for the tip!
    ZolSzi
    @ZolSzi
    @Narsul, sorry for the slow reply. I have looked at the angular-expressions package, but I am not sure what you mean. When the parser receives the tag, it's just a string (the tag's name), but we get no information about the characters surrounding the tag (to be able to distinguish between #param, param and /param)
    Anthony Hell
    @Narsul
    it provides basic calculations possible and basic type conversions^ so you can use not only boolean for #variable
    just try it (:
    Edgar Hipp
    @edi9999
    @ZolSzi @Narsul I think you could do {#param}{.}{/param}
    because {#param} {/param} will switch the inner scope to the string "1"
    peter-miroshnikov
    @peter-miroshnikov
    guys stupid question but does a docx template has to be a speacial structure , in other words - can i edit an existing docx format under my Linux or should i go under windows and create a new docx template . I know its useless question but i've never worked with those templates and still learning most of the stuff
    eddiriarte
    @eddiriarte
    I think libre office can read/write docx...
    Edgar Hipp
    @edi9999
    Hey @peter-miroshnikov , you can of course create or edit a docx template with linux, for example with libre-office
    André Werlang
    @awerlang
    Hello everyone! I need to have more control over paragraphs created when using images in a loop
    to do so, I was wondering if I can call the image modules to do the heavy work, and embed the generated XML inside my custom XML
    I also thought of removing empty paragraphs as a post-processing step, or generating a template (1st step) with the exact image tags to run a second step to create the final document
    any ideas or guidance are welcome
    André Werlang
    @awerlang
    the approach of calling the image module to produce an xml fragment turned out to be the way to go
    Yann Duperis
    @yannduperis
    Hi everyone ! First, I would like to thank edi9999 for this useful library. According to the github description it can handle pptx files, however when I tried to populate a pptx template it did not work. I read the docs and did not find anything about pptx, after all the name of the library is docxtemplater ;). Anyone knows if pptx files can be handled too ? Thanks.
    BillGoobs
    @BillGoobs
    Hello, I am working in SharePoint 2010 client side JavaScript and wish to use docxtemplater. I cannot use node.js or install anything on the web server or client workstations. Which js files must be included and referenced in my client side scripts? Thank You!!
    William Villanueva
    @villanuevawill
    Hello Everyone! I have a question regarding raw xml insertion.
    return '<w:p><w:r><w:t>' +
            text.replace(new RegExp('\&', 'g'), '&amp;')
                .replace(new RegExp('\"', 'g'), '&quot;')
                .replace(new RegExp("\'", 'g'), '&apos;')
                .replace(new RegExp('\>', 'g'), '&gt;')
                .replace(new RegExp('\<', 'g'), '&lt;')
                .replace(new RegExp('\r?\n', 'g'), '<w:br/>')
             + '</w:t></w:r></w:p>';
    However, I have a list that I'm generating via docx. When I apply this code to the text blocks in order to respect newline characters, the list behavior disappears.
    Any ideas how I can respect new lines within a list using docx templater?
    Edgar Hipp
    @edi9999
    Hi yann, maybe you have the same problem as open-xml-templating/docxtemplater-build#1
    Hi @yannduperis , maybe you have the same problem as open-xml-templating/docxtemplater-build#1
    Hi @BillGoobs , you can find all our browser builds here : https://github.com/open-xml-templating/docxtemplater-build/tree/master/build
    @villanuevawill I'm not sure to understand what is not working. You must be using @rawxml syntax, right ?
    Edgar Hipp
    @edi9999
    What do you call the list behaviour ?
    I think you could better explain yourself in a github issue
    Jesse
    @motleydev
    really cool tool. How do you append a second page to the buffer? I want to iterate through several objects and spit out a multipage doc from the template.
    Jesse
    @motleydev
    Just came across this: I think this is what I am looking for. open-xml-templating/docxtemplater#182
    Edgar Hipp
    @edi9999
    Yes, I think that will solve your issue
    Joseph Dias
    @Josephdias92
    hey
    how to include angular-expression in my project which uses bower
    Edgar Hipp
    @edi9999
    Hello
    I don't know exactly, I'm not using bower at all.
    The readme of angular-expressions doesn't seem to show how to do it ; https://github.com/peerigon/angular-expressions
    You could probably edit both these files to get what you need : https://github.com/peerigon/angular-expressions/tree/master/lib
    Joseph Dias
    @Josephdias92
    Hey thanks I was able to get solution to this issue
    One more thing can I use highchart to build chart and render it in docx ?
    Edgar Hipp
    @edi9999
    here's the list of existing free modules : https://github.com/open-xml-templating/docxtemplater#modules
    There's a chart module
    Edgar Hipp
    @edi9999

    docxtemplater v3.0.0 is just released : open-xml-templating/docxtemplater@f9ed771

    we also now provide a set of ready-to-buy modules at https://modules.docxtemplater.com/

    Sayem Shahrier
    @sshahrier
    Hey can I talk to anyone about the XML language here?
    Edgar Hipp
    @edi9999
    Sorry for the late reply @sshahrier7 , do you have any particular question ?
    Daniel Niknam
    @intuxicated
    is it possible to use object in data json? for example with this data '{"name": "danial", "user": {"name": "new name"}}' how can I use "user.name" in template? I've try '{user.name}' but it didn't work.
    Daniel Niknam
    @intuxicated
    I've found a workaround and it was using a package like "flat" to flatten the json
    Alexey Golubev
    @AlxGolubev
    Hi all, can someone help me? I've encountered issue with saved file using docxtemplater, it works perfectly for mac pages/preview Google docs, end everywhere else, but office 365 can't open it
    Here is the example of a file
    I have unpacked it and validated all the xml files and it should work, but it doesn't
    @edi9999
    Alexey Golubev
    @AlxGolubev
    Alexey Golubev
    @AlxGolubev
    ah, we've fixed an issue, we've passed a stream instead of buffer, and it gets converted to utf8 string