Bug 149924 - Draw doesn't render barcodes from PDF
Summary: Draw doesn't render barcodes from PDF
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: All All
: low enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pdf
Depends on:
Blocks: PDF-Import-Draw
  Show dependency treegraph
 
Reported: 2022-07-09 00:47 UTC by Dan Dascalescu
Modified: 2024-05-21 13:44 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
PDF reproducing the bug - barcodes not rendered (217.71 KB, application/pdf)
2022-07-09 00:47 UTC, Dan Dascalescu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Dascalescu 2022-07-09 00:47:12 UTC
Created attachment 181191 [details]
PDF reproducing the bug - barcodes not rendered

Please see bottom of page 2 for the attached document. Krusader's PDF viewer (for example) shows 3 barcodes. Draw only shows the numbers, but not the bar codes.

--

Version: 7.2.7.2 / LibreOffice Community
Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Rainer Bielefeld Retired 2022-07-09 05:36:07 UTC
REPRODUCIBLE with Server Installation of Version: 7.5.0.0.alpha0+  Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
CPU-Threads: 4; BS: Windows 6.1 Service Pack 1 Build 7601; UI-Render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: de-DE
Calc: CL |  Auto Colibre Theme  |  Special devUserProfile (based on my normal one)

Already reproducible with Server Installation of Version:  4.0.0.3 WIN10
Build-ID  7545bee9c2a0782548772a21bc84a9dcc583b89;  Special devUserProfile
Comment 2 Roman Kuznetsov 2022-07-09 11:04:59 UTC
confirm in

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: c1c8ce3b0f1037bca4d500af2f39363cd9d38db6
CPU threads: 4; OS: Mac OS X 12.4; UI render: Skia/Metal; VCL: osx
Locale: ru-RU (ru_RU.UTF-8); UI: en-US
Calc: threaded
Comment 3 V Stuart Foote 2022-07-09 15:02:35 UTC
No, the pdfium base "Insert as image" renders the barcodes correctly to document canvas (must first split the 2nd page from the PDF, i.e. PDFtk or similar). 

Though, on break of the image on canvas it does loose any barcode graphic sense.

As LibreOffice is *not* a PDF editor, lack of import code to render a "barcode" formatted drawing object seems pretty trivial. As an image it is fully supported.

IMHO this goes => NAB

But then modifying the pdfio to use the ZXing libs to render various "QR" and "barcode" 3D/2D codes into Draw shape objects on canvas seems a valid enhancement request.
Comment 4 LeroyG 2022-07-11 20:59:33 UTC
The sample file uses the EX_CFF_3OF9 font. If not installed, it is not interpreted properly. For me is NOTABUG. It is a missing font issue.

I formated the three frames with an alternate 3of9 code font, and could see the barcode (without the bottom numbers, that are not included in this font).

Version: 7.2.3.2 / LibreOffice Community
Build ID: 20(Build:2)
CPU threads: 1; OS: Linux 5.3; UI render: default; VCL: gtk3
Locale: es-MX (es_ES.UTF-8); UI: en-US
Calc: threaded
Comment 5 Dan Dascalescu 2022-07-11 21:50:41 UTC
Sorry I'm not technical enough to make sense of this, but on the same machine I see the barcode in the PDF just fine with the Krusader viewer, so the font must be installed.

I'd expect specialized PDF editing like Draw to be more able than Krusader to display *and edit* PDFs.

But if for some reason barcodes can't be rendered due to a missing form, shouldn't Draw inform the user about that?

What I needed Draw for was to sign that PDF, so I don't care if I don't see the barcode, as long as it's saved correctly. But right now it looks "corrupted", so I didn't want to risk corrupting the file, and had to resort to a non-open source PDF signing solution, which now has a copy of my signature :-/
Comment 6 Timur 2024-05-21 13:44:02 UTC
Repro 24.8+. OK with pdfium.