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

attachments embedding with text #956 #2234

Open
wants to merge 3 commits into
base: features/pdf-attachments
Choose a base branch
from

Conversation

smatheis
Copy link
Contributor

Adding functionality to embed attachments with { text: '', linkToFile: … } as well as Line.optimizeInlines() in order to minimize the number of fileAnnotations per line of text.
(Works great with { style: 'icon' }!)

I'm not 100% confident that optimizeInlines doesn't break in some cases, but it seems to work perfectly for everything I tested - tests run as well.

@liborm85
Copy link
Collaborator

optimizeInlines require add unit tests.

@tuxpoldo
Copy link

@liborm85 - When will this be merged? I would really appreciate it!

@liborm85
Copy link
Collaborator

liborm85 commented Jan 1, 2022

@smatheis line optimization breaks style alignment: 'justify'
before:
named_styles_with_overrides-before.pdf

after:
named_styles_with_overrides-after.pdf

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

Successfully merging this pull request may close these issues.

3 participants