Git Product home page Git Product logo

Comments (7)

jhpyle avatar jhpyle commented on June 25, 2024

Yes, an error like that should be trapped better! It seems like you are making reference to a graphics file which exists but is not displayable for some reason. If it is a file in a package, it needs to be in the data/static folder in order to be displayable. Or is it a file uploaded by the user?

from docassemble.

nroach avatar nroach commented on June 25, 2024

from docassemble.

nroach avatar nroach commented on June 25, 2024

Appearing in Preview
screenshot 2017-05-04 13 52 51

Shows as downloadable
screenshot 2017-05-04 13 53 31

Produces a zero-byte PDF or RTF file when downloaded
screenshot 2017-05-04 13 53 42

Errorlog:

pandoc: Error producing PDF
! Extra }, or forgotten \endgroup.
\endminipage ...pagefalse \color@endgroup \egroup 
                                                  \expandafter \@iiiparbox \...
l.338 \end{minipage}

from docassemble.

jhpyle avatar jhpyle commented on June 25, 2024

I think the image inclusion problem might be remedied by writing [FILE firmlogo.jpg], though what you did should have worked -- I will need to test that more thoroughly.

As for the Pandoc problem, I think that's caused by the inclusion of the address block within a Markdown table. Markdown tables are fragile. However, the [BEGIN_TWOCOL] ... [BREAK] ... [END_TWOCOL] construct documented here might be a good alternative.

from docassemble.

jhpyle avatar jhpyle commented on June 25, 2024

I believe the image inclusion problem may have been caused by the fact that your package name had hyphens in it. I think if you include hyphens in your package name, Python treats the hyphens as minus signs and tries to do subtraction. I tried taking out the hyphens from the package name and then the image references worked.

from docassemble.

jhpyle avatar jhpyle commented on June 25, 2024

Check out this example to see how the [BEGIN_TWOCOL] ... [BREAK] ... [END_TWOCOL] feature can be used and an address block can be incorporated.
I think the inclusion of the address block using the .address_block() method will require the latest version of the software (which is compiling now on Docker Hub) but even with the older version you should be able to construct the address block if you do it one line at a time.

from docassemble.

jhpyle avatar jhpyle commented on June 25, 2024

I believe this issue has been addressed, so I am closing it.

from docassemble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.