Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinitive time counting with :cell and string #85

Open
kwladyka opened this issue Aug 26, 2016 · 3 comments
Open

Infinitive time counting with :cell and string #85

kwladyka opened this issue Aug 26, 2016 · 3 comments

Comments

@kwladyka
Copy link

(pdf
  [{:title "Labels"
    :left-margin 2
    :right-margin 2
    :top-margin 0
    :bottom-margin 0
    :size [43 58]
    :font {:size 3}
    :footer {:page-numbers false}}
   [:table {:align :center
            :background-color [0 0 0]
            :color [255 255 255]
            :padding 0
            :offset 0
            :spacing 3
            :border false
            :cell-border false}
    [[:cell {:align :center} "African Queen African Queen African Queen African Queen"]]]]
  "doc.pdf")

This code [:cell {:align :center} "African Queen African Queen African Queen African Queen"] makes running code forever. Never ending counting.

@yogthos
Copy link
Collaborator

yogthos commented Aug 26, 2016

Nothing jumps out at me there, but could have to do with sizing again. All my use cases have been printing on A4 size paper, so I haven't tested what happens in small formats too much admittedly. Looks like when text overflows the page size, it causes some problems.

@kwladyka
Copy link
Author

[[:cell "foo"]] makes the same problem, so probably it is not about too large text for the page. Please notice default font size is 3.

@yogthos
Copy link
Collaborator

yogthos commented Aug 26, 2016

Sounds like it might need some more investigation. The actual layout logic is inherited from the itext code I pulled in, and I haven't explored it too deeply myself yet as I haven't run into problems for my use cases yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants