Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported comments in pdf can not be copied or processed as text #62

Open
martin-guddat opened this issue Nov 22, 2021 · 1 comment
Open

Comments

@martin-guddat
Copy link

martin-guddat commented Nov 22, 2021

Steps to reproduce:
Preparation

  • Create a pdf-annotation activity
  • Add comments to the activity
  • Export comments with "Kommentare herunterladen"
  • Open the downloaded activity_title_Kommentare.pdf in PDF-Viewer
    Action
  1. Select and copy user name and change timestamp
  2. Paste selected data
  3. Select annotation text
  4. Paste annotation text

Expected:

  • Data pasted in step2 equals data copied in step 1
  • Data pasted in step4 equals data copied in step 3

Is:
data pasted in step 2 equals data copied in step1 (as expected)
data pasted in step 4 does not equal data copied in step3 (unexpected)
the Annotation text ABC 0123 BOX is pasted as:
%&'८௺௻௼௽८&3<

Additional info:
Is there some kind of encoding issue?
A a result names and dates are available for pdfgrep, the annotations themselves are not. the generated pdf is rejected by pdftotext with the following error message: Syntax Error: Unknown character collection 'Adobe-Identity-H'

The issue is supposedly related to issue #17: CJK characters turn into unreadable characters while downloading comments · Issue #17 · rwthmoodle/moodle-mod_pdfannotator

Example file added
Annotation Test_Kommentare.pdf

@nisaDoc
Copy link

nisaDoc commented Oct 14, 2022

Hello @martin-guddat,

thank you for reporting the issue and thank you for using our plugin.
Currently, we are planning to updating the jspdf library, that library for generating the pdf comments. But, it could take some time until we are really working on that update.

Best regards,
Nisa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants