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

⚡ Append newline to PDF output more efficiently #98

Merged
merged 1 commit into from
Jan 9, 2025
Merged

Conversation

ralfstx
Copy link
Member

@ralfstx ralfstx commented Jan 9, 2025

This change uses a more efficient method to append the trailing newline to the PDF output. Instead of creating a new array with the spread operator, it creates a new Uint8Array with the correct length and copies the original data into it.

This change uses a more efficient method to append the trailing newline
to the PDF output. Instead of creating a new array with the spread
operator, it creates a new Uint8Array with the correct length and copies
the original data into it.
@ralfstx ralfstx merged commit 7cdd314 into main Jan 9, 2025
1 check passed
@ralfstx ralfstx deleted the trailing-newline branch January 9, 2025 08:35
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

Successfully merging this pull request may close these issues.

1 participant