Report print to PDF exports a raw image instead of selectable text
Louis-Philippe Allard
lp.allard.1 at gmail.com
Mon Feb 5 02:07:48 GMT 2024
Hello Jack,
OK I got it working. Not sure why but if I dont explicitely add
".html" to the filename when exporting from KMM, it exports the data
as a plain text that browsers can't parse properly....
Strrangely I tried to simply open the "defective" file in Libreoffice
Writer and it seems to be able to properly parse the code and display
the data properly...
If I manually add the html extension I can open the file from my web
browser without any issue..... Maybe I used linux for too long and
got used to how file extensions are mostly irrelevant...
Thanks
Quoting Jack via KMyMoney <kmymoney at kde.org>:
> On 2/4/24 15:34, Louis-Philippe Allard via KMyMoney wrote:
>
>>
Quoting Jochen via KMyMoney <kmymoney at kde.org>:
> Hi,
>
> Am 01.02.24 um 04:54 schrieb Louis-Philippe Allard via KMyMoney:
>
>> as described in email subject, Kmymoney 5.1-606 (AppImage) exports
>> report in PDF format with an image of the page instead of selectable text.
>>
>> As anything changed in the way it exports to PDF? To produce the PDF I
>> always simply opened up the report, did "CTRL+P" and the OS print dialog
>> box pops up and I selected the "Print to File (PDF)" and set the options
>> as I wanted.
>>
>> The PDF's I exported in the past were always standard PDF's with
>> selectable text. Now its exporting what seems to be a screenshot of the
>> contents of the report, and a blurry one at that...
>>
>> Sorry if this issue was covered before or if a new setting has been
>> added to KMM which causes this issue?
>
> you can try to export it into a HTML file, open it in your web browser
> and print it from there as PDF.
>
> More work but it works. ;-)
>
> --
>
> Viele Grüße,Jochen
Hello,
I just tried to export the report as HTML and while its exporting, its
not being parsed as HTML code in my browser. I tried with several
browsers to no avail.
Are you saving as a file with a .html extension and then opening it
with the browser> The text below looks OK to me.
> This is what I get when opening the HTML file with my browser:
It looks like the browser is opening the file as plain text instead of html.
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 //EN"
> "http://www.w3.org/TR/html4/strict.dtd"[1]>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
> <title>C1-1: General Insurance Registry (incomp. w/o WP reports)</title>
> <style type="text/css">
> <!--
>
> Any trick to make this work? By the way printing the report to PDF
> produces a file that exceeds 10Mb (42 pages of transactions)....
> Louis-Philippe Allard
> lp.allard.1 at gmail.com
> Sent using Horde Groupware on GNU/Linux
Links:
------
[1] http://www.w3.org/TR/html4/strict.dtd
Louis-Philippe Allard
lp.allard.1 at gmail.com
Sent using Horde Groupware on GNU/Linux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kmymoney/attachments/20240204/fa559f0f/attachment-0001.htm>
More information about the KMyMoney
mailing list