Moritz Flöter created FOP-3246: ---------------------------------- Summary: Different line endings in XMP metadata accross different Operating Systems Key: FOP-3246 URL: https://issues.apache.org/jira/browse/FOP-3246 Project: FOP Issue Type: Improvement Components: renderer/pdf Affects Versions: 2.10 Environment: Linux, Windows Reporter: Moritz Flöter Fix For: main Attachments: crlf-to-lf-for-xmp-metadata.patch
At my job, we cently migrated some functionality from hand written positioning of PDF elements to Apache FOP. When running tests, we compare the resulting PDFs (after filtering out things like date, ID etc.). However, we realized that our development systems (Windows based) produced different output than our Linux based test systems. We found out that this is due to line endings in the XMP metadata. It would be nice to have similar behaviour accross all operating systems given that there is no functional difference between both PDF files (albeit LF line endings make the file a tiny bit smaller). Therefore I implemented a change that replaces CRLF line endings with LF line endings in the XMP metadata. -- This message was sent by Atlassian Jira (v8.20.10#820010)