[
https://issues.apache.org/jira/browse/PDFBOX-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Lehmkühler closed PDFBOX-121.
-------------------------------------
Resolution: Duplicate
Assignee: Andreas Lehmkühler
PDFBOX-945v solves this issue, set to closed.
> EOL changes on different OSes
> -----------------------------
>
> Key: PDFBOX-121
> URL: https://issues.apache.org/jira/browse/PDFBOX-121
> Project: PDFBox
> Issue Type: Bug
> Components: Writing
> Assignee: Andreas Lehmkühler
>
> [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.
--
This message was sent by Atlassian JIRA
(v6.1#6144)