You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Simon Steiner (Jira)" <ji...@apache.org> on 2025/05/06 09:40:00 UTC

[jira] [Updated] (FOP-3246) [PATCH] Different line endings in XMP metadata accross different Operating Systems

     [ https://issues.apache.org/jira/browse/FOP-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Steiner updated FOP-3246:
-------------------------------
    Fix Version/s:     (was: 2.11)

> [PATCH] 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
>            Priority: Minor
>         Attachments: crlf-to-lf-for-xmp-metadata.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> [PATCH] At my job, we recently 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)