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

Re-use the already set document language in new PdfWriter instances. #357

Merged
merged 1 commit into from
Apr 22, 2020
Merged

Re-use the already set document language in new PdfWriter instances. #357

merged 1 commit into from
Apr 22, 2020

Conversation

armin-weber
Copy link

I've noticed that it is necessary to propagate the document language introduced in Pull Request #352 whenever a new PdfReader is constructed. Otherwise, when one writes to PdfContentByte returned by PdfWriter#getDirectContent or PdfWriter#getDirectContentUnder, the document language would be "dflt" again and could only be changed after document.open() has been called.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@andreasrosdal andreasrosdal merged commit 00fc1bf into LibrePDF:master Apr 22, 2020
@armin-weber armin-weber deleted the inconsistent-document-language-usage branch April 22, 2020 11:26
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.

2 participants