[Gambas-bugtracker] Bug #1691: QT toolkits printer generated pdf are really weird

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Tue Dec 3 18:05:47 CET 2019


http://gambaswiki.org/bugtracker/edit?object=BUG.1691&from=L21haW4-

Fabien BODARD reported a new bug.

Summary
-------

QT toolkits printer generated pdf are really weird

Type             : Bug
Priority         : High
Gambas version   : Master
Product          : GUI components


Description
-----------

If you set the name in Printer.OutputFile with an extention it have not the same size as if it have not.

QT5 :
With:       482 ko
Without:   59,5 ko

QT4.... ARRRRRGH
With :     9.3 MO
Without :  9.3 MO

GTK2
With :    36.7 ko
Without : 36.7 ko

GTK3
With :     36,7 ko
Without :  36.7 ko



The winner is GTK !!

QT5 is not so bad but only without extention

For the same generation simplescan make a file of : 150 ko but i'm not sur it use perfectly the same pictures.

Well at less QT4 is in a bad moon, and QT5 do strange things.

I join the testdemo source archive.


System information
------------------

[System]
Gambas=3.14.90 8f3536238 (master)
OperatingSystem=Linux
Kernel=5.3.0-23-generic
Architecture=x86_64
Distribution=Ubuntu 19.10
Desktop=KDE5
Theme=Breeze
Language=fr_FR.UTF-8
Memory=7847M

[Libraries]
Cairo=libcairo.so.2.11600.0
Curl=libcurl.so.4.5.0
DBus=libdbus-1.so.3.19.10
GStreamer=libgstreamer-1.0.so.0.1601.0
GTK+2=libgtk-x11-2.0.so.0.2400.32
GTK+3=libgtk-3.so.0.2404.8
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.90.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.12.4
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
APPMENU_DISPLAY_BOTH=1
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=plasma
DISPLAY=:0
GB_GUI=gb.qt5
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GS_LIB=<home>/.fonts
HOME=<home>
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
LANG=fr_FR.UTF-8
LANGUAGE=fr_FR.UTF-8
LOGNAME=<user>
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=<home>
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_LOGGING_RULES=*.debug=false
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1610,unix/<hostname>:/tmp/.ICE-unix/1610
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=1524
SSH_AUTH_SOCK=/tmp/ssh-lBsHtkbsHy3J/agent.1482
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=<home>/.Xauthority
XCURSOR_THEME=breeze_cursors
XDG_CONFIG_DIRS=/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings
XDG_CURRENT_DESKTOP=KDE
XDG_DATA_DIRS=/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_ID=3
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=x11
XDG_VTNR=1




More information about the Bugtracker mailing list