Digitaler-Impfnachweis / covpass-android

The official CovPass(-Check) Android apps and SDK.
https://digitaler-impfnachweis-app.de
Apache License 2.0
184 stars 59 forks source link

Fold cross of exported certificate vertically misaligned #226

Closed MikeMcC399 closed 1 year ago

MikeMcC399 commented 2 years ago

Avoid duplicates

Technical details

The issue is also reproducible on a physical device.

Describe the bug

The fold mark of an exported certificate is not vertically centered. It is misaligned by approximately 4 mm.

Distances in mm from edge to center cross

App Version left right top bottom comment
1.28.0 105.93 103.58 144.47 151.90 vertically displaced
Expected 105 105 148.5 148.5 dimensions for center of DIN A4

Steps to reproduce the issue

On Desktop

  1. Use Android Studio Device File Explorer to transfer German EU vaccination certificate PDF to the emulator

In CovPass App

  1. Tap "+", tap "Add certificate"
  2. Tap file symbol, bottom left of scan screen
  3. Tap "Select document"
  4. Navigate to vaccination certificate in File app and tap on file, tap "Import 1 certificate(s)", tap "OK"
  5. Tap "Display certificates", tap "Manage certificates"
  6. Scroll down to "Vaccination certificate" and tap
  7. Scroll down to "Create EU printout" and tap, tap "Next"
  8. Select "Drive"
  9. Tap "Save"

On Desktop

  1. Open Drive https://drive.google.com/drive/my-drive
  2. Download the saved certificate
  3. Open saved PDF with Adobe Acrobat DC
  4. Zoom to page level
  5. Click Tools > Measure > Measuring Tool
  6. Use mouse to measure from edges to center cross

You can also print out the certificate onto DIN A4 paper and fold it to see that the cross is not in the center. This is not so accurate a test as measuring the PDF directly with Adobe Acrobat DC however.

Expected behaviour

The folding cross should be in the center of the document. DIN A4 has the standard dimensions 210 x 297 mm, so the cross should be at 105 and 148.5 mm from the respective paper edge.

Related certificate export formatting issues

MikeMcC399 commented 2 years ago

Edit: The issue is fixed in CWA 2.26 (but not in CovPass).

MikeMcC399 commented 2 years ago

Will this issue be fixed in a future CovPass version? In 1.31.0 the center cross is still vertically off center.

MikeMcC399 commented 1 year ago

This issue is not fixed in CovPass app 1.36.0.

MikeMcC399 commented 1 year ago