Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
[imported from SourceForge]
http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1415803
Originally submitted by yourgod on 2006-01-26 15:03.
ContentStreamWriter.EOL is currently defined as
System.getProperty("line.separator").getBytes()
I am using PDDocument.save(OutputStream) to send the
pdf through a CheckedOutputStream for getting a
checksum for the pdf. I found that because of this use
of System.getProperty("line.separator") that my
checksums were different when this ran on different
operating systems. My workaround was to force
System.getProperty("line.separator") to a known value
before calling PDDocument.save(OutputStream) and then
resetting it after, but this is not an optimal solution.
I propose that this value be made a fixed one (which
one you pick apparently doesn't matter) as it's more
"java like" for things to be the same on different
operating systems.
[comment on SourceForge]
Originally sent by yourgod.
Logged In: YES
user_id=257129
Seems COSStandardOutputStream.EOL also needs a change made
as it is initialized the same way.
Attachments
Issue Links
- duplicates
-
PDFBOX-945 PDFBOX may not depend on plattform encoding
- Closed