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

Tweak Document#text_box to implement some features from PDF::Writer#add_text_wrap #2

Closed
practicingruby opened this issue Apr 19, 2009 · 3 comments

Comments

@practicingruby
Copy link
Member

This is a request for several enhancements to Prawn#text_box so that it would support the features of #add_text_wrap in PDF::Writer.
1. When Prawn#textbox is called with the :truncate or :ellipses option the text which is not displayed in the text box is returned. (Implemented by geeksam and merged for 0.6)_
2.

When Prawn#text_box is called with the :angle => (int in range 0..259) option, the text is rotated as it would be using PDF::Writer #add_text_wrap 3. When Prawn#text_box is called with the :justification => :left | :center option, the text is justified as it would be using PDF::Writer #add_text_wrap
@geeksam
Copy link
Contributor

geeksam commented Aug 18, 2009

I have an implementation for (1) only; will submit pull request shortly.

@practicingruby
Copy link
Member Author

Merged your patch, thanks.

@practicingruby
Copy link
Member Author

all except angle supported now.

hbrandl added a commit that referenced this issue Jan 2, 2014
bringing my fork up to date with original (prawndpdf:master)
pointlessone added a commit that referenced this issue Apr 28, 2019
# This is the 1st commit message:

CircleCI configuration

# The commit message #2 will be skipped:

# fixup! CircleCI configuration
pointlessone added a commit that referenced this issue Apr 30, 2019
# This is the 1st commit message:

CircleCI configuration

# The commit message #2 will be skipped:

# fixup! CircleCI configuration
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants