[okular] [Bug 484601] Okular should not (by default) embed the ENTIRE font file into the saved PDF document when Typewriter annotations are added.

2024-03-27 Thread 林博仁
https://bugs.kde.org/show_bug.cgi?id=484601

--- Comment #3 from 林博仁(Buo-ren, Lin)  ---
(In reply to 林博仁(Buo-ren, Lin) from comment #0)
> Use [the Static Super-OTC variant of the Noto Sans CJK
> font](https://github.com/notofonts/noto-cjk/releases/download/Sans2.004/
> 00_NotoSansCJK.ttc.zip) creates a PDF document that is 1233x of the original
> file's size.

Which is ~91.1MiB to be specific, which is NOT a reasonable file size for a
single-page PDF document that contains only 2 glyphs of the Chinese characters.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 484547] Does not show drop down menu in formular

2024-03-27 Thread Martin
https://bugs.kde.org/show_bug.cgi?id=484547

--- Comment #2 from Martin  ---
(In reply to Albert Astals Cid from comment #1)
> Are you clicking on the arrow of the combo box? (right hand side in the
> regular style)

Ah now I see, the button with the arrow for point 5 is just not rendered (See
Attachment).

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 484623] New: "Open new files on tabs" option doesn't work on Windows

2024-03-27 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=484623

Bug ID: 484623
   Summary: "Open new files on tabs" option doesn't work on
Windows
Classification: Applications
   Product: okular
   Version: 23.08.1
  Platform: Microsoft Windows
OS: Microsoft Windows
Status: REPORTED
  Severity: normal
  Priority: NOR
 Component: general
  Assignee: okular-devel@kde.org
  Reporter: erenakin...@gmail.com
  Target Milestone: ---

***
If you're not sure this is actually a bug, instead post about it at
https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY

"Open new files on tabs" and "Focus on tab if the file is already opened"
option doesn't work on Windows. Double clicking on a pdf creates a new window
of Okular regardless of which option is chosen in the configuration tab.


STEPS TO REPRODUCE
1.  Launch Okular.
2. Turn "Open pdf files on a new tab" option on in the config page.
3. Double click on a pdf file.

OBSERVED RESULT

Opening a pdf files launches a new instance of Ocular.

EXPECTED RESULT

The said pdf file would show up on a new tab.

SOFTWARE/OS VERSIONS
Windows:  Windows 11 Pro 22631
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 484601] Okular should not (by default) embed the ENTIRE font file into the saved PDF document when Typewriter annotations are added.

2024-03-27 Thread 林博仁
https://bugs.kde.org/show_bug.cgi?id=484601

--- Comment #2 from 林博仁(Buo-ren, Lin)  ---
Created attachment 167851
  --> https://bugs.kde.org/attachment.cgi?id=167851&action=edit
The source HTML document used to produce the POC.orig.pdf (the file is
generated using the output as PDF function of the print dialog of the web
browser)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 484601] Okular should not (by default) embed the ENTIRE font file into the saved PDF document when Typewriter annotations are added.

2024-03-27 Thread 林博仁
https://bugs.kde.org/show_bug.cgi?id=484601

--- Comment #1 from 林博仁(Buo-ren, Lin)  ---
Created attachment 167847
  --> https://bugs.kde.org/attachment.cgi?id=167847&action=edit
The screenshot of the Fonts tab of the PDF properties dialog

-- 
You are receiving this mail because:
You are the assignee for the bug.

[okular] [Bug 484601] New: Okular should not (by default) embed the ENTIRE font file into the saved PDF document when Typewriter annotations are added.

2024-03-27 Thread 林博仁
https://bugs.kde.org/show_bug.cgi?id=484601

Bug ID: 484601
   Summary: Okular should not (by default) embed the ENTIRE font
file into the saved PDF document when Typewriter
annotations are added.
Classification: Applications
   Product: okular
   Version: 24.02.1
  Platform: Flatpak
OS: Linux
Status: REPORTED
  Severity: normal
  Priority: NOR
 Component: PDF backend
  Assignee: okular-devel@kde.org
  Reporter: buo.ren@gmail.com
  Target Milestone: ---

Created attachment 167846
  --> https://bugs.kde.org/attachment.cgi?id=167846&action=edit
Size differences between the original document and the one with the typewriter
annotations

SUMMARY

I was going to sign a PDF document using Okular but found that after signing it
using the Typewriter annotations feature the resulting PDF document's file size
becomes >15MiB.  It turns out that Okular embeds the ENTIRE font file of the
Chinese font I'm using but not a subset of it required by the annotation text
itself, making the resulting file size 260x than the original.

This is a serious problem as:

* The resulting file will likely no longer be attachable to an e-mail due to
the oversized file.
* The resulting file may no longer be legally distributed as it may violate the
license of the embedded font(only subset distribution of the glyphs is
allowed).

STEPS TO REPRODUCE
1. Open a PDF document, and note the original file size of the file.
2. Add a Typewriter annotation that consists of characters that can only be
rendered by a big-scaled font (e.g. Chinese by "Noto Sans CJK").
3. Save the PDF document.

OBSERVED RESULT

The entire Chinese font(instead of its subset) is embedded in the document(as
per the attached screenshot).

EXPECTED RESULT

Okular should embed the subset of the font required to render the Typewriter
annotations by default, or at least provide an option to opt-off the current
behavior.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Okular 24.02.1 Flatpak @ Ubuntu 23.10 Desktop
(available in About System)
KDE Plasma Version: 5.27.8
KDE Frameworks Version: Flatpak: 6.0.0 @ Host: 5.110.0
Qt Version: Flatpak: 6.6.2 @ Host: 5.15.10

ADDITIONAL INFORMATION

Use [the Static Super-OTC variant of the Noto Sans CJK
font](https://github.com/notofonts/noto-cjk/releases/download/Sans2.004/00_NotoSansCJK.ttc.zip)
creates a PDF document that is 1233x of the original file's size.

-- 
You are receiving this mail because:
You are the assignee for the bug.