Print to PDF not allowing selectable text on some sites

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
tpcsanh
Apollo supporter
Apollo supporter
Posts: 37
Joined: 2015-08-22, 13:45
Location: US

Re: Print to PDF not allowing selectable text on some sites

Unread post by tpcsanh » 2021-03-02, 17:39

Moonchild wrote:
2021-03-02, 15:27
So iow your pdf printers rejected a bad font and converted them to shapes, and mine did not.
I still don't see how that is our problem. I think typekit.net needs to fix their fonts and not rely on browsers to sanitize them for them.
Agree.

Just went to a site that has created non selectable text in the past. Looked for CSS errors. There they were. Deleted the CSS creating the font issues. Selectable text.
TMINY wrote:
2021-03-02, 17:10
The PDF printer doesn't seem to be receiving the fonts from the browser, yes?
I believe the PDF printers are receiving the fonts, but the fonts are messed up and some PDF printers default to image instead of making more of a mess. The same PDF printers work when one disables "Allow pages to choose ..." or when one deletes the CSS causing the errors.

TMINY

Re: Print to PDF not allowing selectable text on some sites

Unread post by TMINY » 2021-06-06, 18:06

Checking in on this... I'd still love to get a searchable PDF out of PaleMoon. It's been a problem that I can't select or search text. Any ideas? I'm willing to offer a bounty for a fix.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35576
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Print to PDF not allowing selectable text on some sites

Unread post by Moonchild » 2021-06-06, 18:45

:roll: So, completely ignoring everything that's been said previously in this thread.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

TMINY

Re: Print to PDF not allowing selectable text on some sites

Unread post by TMINY » 2021-06-06, 18:48

Not really... I identified a problem that wasn't present in Win-32. And disabling custom fonts each time to generate a searchable PDF doesn't seem like a viable workaround. Can you explain/elaborate on what the roadblock might be?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35576
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Print to PDF not allowing selectable text on some sites

Unread post by Moonchild » 2021-06-06, 19:02

TMINY wrote:
2021-06-06, 18:48
Not really...
Well if I can answer your question with quotes from my previous posts then what would you call that?
TMINY wrote:
2021-06-06, 18:48
Can you explain/elaborate on what the roadblock might be?
Moonchild wrote:
2021-03-02, 15:27
So iow your pdf printers rejected a bad font and converted them to shapes, and mine did not.
I still don't see how that is our problem.
Moonchild wrote:
2021-03-01, 19:50
It is not an inherent problem with the OS or the browser, as far as I can tell.
(and as such it's pointless to offer a bounty here because we can't fix something that's not within our scope)
Moonchild wrote:
2021-03-01, 19:50
I do enable downloadable fonts by default because they are part of webdesign.
(giving me selectable text)
Moonchild wrote:
2021-03-02, 16:43
Just having brief snippets of text won't have the fonts embedded because it would be wasteful to do so. I don't think you can blame PDF printers for employing best effort to keep file sizes small and be efficient in that case.
Moonchild wrote:
2021-03-02, 16:43
PDF is primarily a visual output format.
In other words: an interaction with the PDF printer of choice given specific environment restrictions like memory sizes and how much "custom font" text is involved. The PDF printing software (out of scope for us) making decisions whether to include an entire font table or not is irrelevant for the PDF output format because it is not supposed to be editable and accurate reproduction of the content trumps editability every time.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

TMINY

Re: Print to PDF not allowing selectable text on some sites

Unread post by TMINY » 2021-06-06, 19:14

Looks like FF and Edge offer a Save as PDF option in their Print windows to get a searchable PDF out of the browser. Is that a feature you can implement to solve this problem?

Any idea why this was working previously in Win-32?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35576
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Print to PDF not allowing selectable text on some sites

Unread post by Moonchild » 2021-06-06, 21:04

Writing out a foreign, complex file format is not within scope of the web browser. I'm not going to add that kind of complexity to Pale Moon.
The answer is no.
If you want this, then feel free to examine the code Mozilla added to have this feature and create an extension to do the same.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

TMINY

Re: Print to PDF not allowing selectable text on some sites

Unread post by TMINY » 2021-06-06, 22:19

Printing or saving to a usable PDF seems like it should be part of the core functionality for a modern browser, but if it's not a feature you want in PM, so be it.

I am not a programmer, but just a PM user seeking support. Hence, I am willing to offer a bounty for a solution to this.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35576
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Print to PDF not allowing selectable text on some sites

Unread post by Moonchild » 2021-06-07, 01:32

TMINY wrote:
2021-06-06, 22:19
Printing or saving to a usable PDF seems like it should be part of the core functionality for a modern browser
You can print to PDF just fine! And the PDF is perfectly usable for what PDFs are for, which is primarily output/display (sounding like a broken record here).
Exporting PDF-formatted data, meaning converting rendered html to PDF and saving it out, is most definitely NOT something that belongs in any web browser. If you think it does, then you are redefining what a web browser is supposed to be based on the fact that some mainstream ones have that particular tool as part of their line-up.
TMINY wrote:
2021-06-06, 22:19
I am not a programmer, but just a PM user seeking support. Hence, I am willing to offer a bounty for a solution to this.
Then pay someone to make a browser extension that does what you need. It doesn't belong in the core.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked