Skip to content

Commit

Permalink
use getISOBytes instead of PdfEncodings
Browse files Browse the repository at this point in the history
  • Loading branch information
Sönke Küper authored and asturio committed Mar 13, 2022
1 parent b5ae21e commit 81bf7b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openpdf/src/main/java/com/lowagie/text/pdf/PdfWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,7 @@ int getRefnum() {
public void toPdf(OutputStream os) throws IOException {
// TODO: are generation number and 'In use' keyword bound that way?
final char inUse = generation == GENERATION_MAX ? 'f' : 'n';
String entry = String.format(CROSS_REFERENCE_ENTRY_FORMAT, offset, generation, inUse);
os.write(PdfEncodings.convertToBytes(entry, null));
os.write(getISOBytes(String.format(CROSS_REFERENCE_ENTRY_FORMAT, offset, generation, inUse)));
}

/**
Expand Down

0 comments on commit 81bf7b9

Please sign in to comment.