Newline breaks XFDF-import

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: Tracker Support, TrackerSupp-Daniel, Paul - Tracker Supp, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker Supp-Stefan, Ivan - Tracker Software

Post Reply
AnKeilha
User
Posts: 26
Joined: Fri Apr 27, 2018 11:17 am

Newline breaks XFDF-import

Post by AnKeilha » Wed May 15, 2019 8:44 am

I am using PDF-XChange Editor Version 7.0 (Build 328.2). It does not make a difference whether I try the following in the standalone editor or the SDK.

When I use the file working.xfdf (see zip file attached) I see the expected yellow rectangle with "text" in it (see screenshot-working.png). When I use the notWorking.xfdf (see also zip file attached) I only see the yellow rectangle without the text (see screenshot-notWorking.png). The files working.xfdf notWorking.xfdf are identical, except that there is an additional newline in line 5 of notWorking.xfdf.

When I, after using notWorking.xfdf, try to export to a new XFDF the text is gone. Thus, it does not seem to be a pure rendering issue but rather something getting lost during import.

On a side note: The old PdfViewer (Version 2.5 - Build 209.0) works pretty well (see oldPdfViewerWorks.png).
Attachments
oldPdfViewerWorks.png
Just to prove that notWorking.xfdf used to work in the old PdfViewer Version 2.5 - Build 209.0.
screenshot-notWorking.png
Screenshot after importing notWorking.xfdf
screenshot-working.png
Screenshot after importing working.xfdf
XFDFs.zip
contains working.xfdf and notWorking.xfdf
(1.41 KiB) Downloaded 30 times
DIN-A4-Testdokument.pdf
The PDF document I used for the import (for me it did not matter what PDF I used)
(9.11 KiB) Downloaded 27 times

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13376
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Newline breaks XFDF-import

Post by Tracker Supp-Stefan » Thu May 16, 2019 11:17 am

Hello AnKeilha,

Thanks for your post and report.
I've asked a colleague from the dev team to take a look, and we will post an update here as soon as possible!

Regards,
Stefan

AnKeilha
User
Posts: 26
Joined: Fri Apr 27, 2018 11:17 am

Re: Newline breaks XFDF-import

Post by AnKeilha » Thu May 23, 2019 8:49 am

Hello,
any news on this issue? As this problem would occur very frequently with our users, we need to decide if we have to implement a workaround.

Regards,
AnKeilha

AnKeilha
User
Posts: 26
Joined: Fri Apr 27, 2018 11:17 am

Re: Newline breaks XFDF-import

Post by AnKeilha » Mon May 27, 2019 10:21 am

Hello,
FYI: we have implemented a workaround for this. In short, before we import any XFDF data, we always use the following formatting step:

new XMLOutputter(org.jdom.output.Format.getCompactFormat()).outputString(annotsElement);

(see http://www.jdom.org/docs/apidocs.1.1/or ... pactFormat() )

This solution seems to work for us. I would appreciate to get notified, in case you see any problems with this workaround. Looking at it from an XML perspective, the reformatting shouldn't really break anything, but of course it should not really fix anything either :wink: .

Regards,
AnKeilha

User avatar
Paul - Tracker Supp
Site Admin
Posts: 4906
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Newline breaks XFDF-import

Post by Paul - Tracker Supp » Tue Jun 04, 2019 8:44 pm

Hi AnKeilha,

I was about to raise a support request ticket to track the investigation of this when I realised you are using V7 Build 328.2 We will need you to test this in the current build 8.0 331.0 as any fix will need to be in a future release.

regards

Paul
_________________
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com

AnKeilha
User
Posts: 26
Joined: Fri Apr 27, 2018 11:17 am

Re: Newline breaks XFDF-import

Post by AnKeilha » Wed Jun 05, 2019 7:54 am

Hello Paul,
I repeated the same test as above using version 8.0 build 331.0 and - unfortunately - got the same result:
Test-Using-V8.0-build-331.0.png
Test result using V8.0 build 331.0
Regards,
AnKeilha

User avatar
Paul - Tracker Supp
Site Admin
Posts: 4906
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Newline breaks XFDF-import

Post by Paul - Tracker Supp » Wed Jun 05, 2019 2:22 pm

Thanks for doing that AnKeilha,

I have raised the support request ticket, while internal only, should you refer RT#4804: Newline breaks XFDF-import any support staff member will be able to get you a status Update.

regards

Paul
_________________
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com

Post Reply