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!
TMINY

Print to PDF not allowing selectable text on some sites

Unread post by TMINY » 2021-02-28, 22:07

PM 29.0.1 x64, Win10 20H2.

If I try to print to PDF using PDFfactory or MS Print to PDF, the resulting PDF has vector outlines of characters that zoom well, but no selectable text.

This is reproducible in a clean install of PM on a clean Windows machine on different hardware.

Some discussion of this is here-
https://community.adobe.com/t5/acrobat/ ... p/10998138
and this page also works as a testing page.

FF, Chrome, and Chromium Edge all have the same problem, but get around it by having a built-in "Save to PDF" feature in the browser's print window.

Here was a similar thread describing this behavior-
viewtopic.php?f=3&t=18303&p=134776&hili ... ts#p134762

The workaround was to disable custom web fonts on the page before printing, but this is not always desirable and also requires quite a few clicks.

I have tried using Ublock Origin's remote font blocker, but that's not solving it.

My main use for Print to PDF is for web receipts. So I need to be able to copy text out of them frequently or search for keywords within a folder full of them.

Any ideas on how to improve this print functionality?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
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-02-28, 23:32

Solution: use a different PDF printer.
e.g. if I print this page to PDF using my PDF printer (PrimoPDF) i get PDFs with selectable text.
Attachments
Print to PDF not allowing selectable text on some sites - Pale Moon forum.pdf
(150.24 KiB) Downloaded 28 times
"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-02-28, 23:42

Moonchild wrote:
2021-02-28, 23:32
if I print this page
Yes, this page we are on (forum page) works OK with various PDF virtual printers. But try the Adobe forum page in my first link. That has custom fonts that should reproduce the problem.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
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-03-01, 01:13

No problem with Primo.
Attachments
Solved_ Acrobat DC_ Unable to select text when print from ...pdf
(263.5 KiB) Downloaded 21 times
"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-03-01, 03:40

I can't reproduce your results on a clean test VM. I installed latest PrimoPDF and tried setting it to both PDF 1.3 (default) and PDF 1.5. The resulting PDF only has Times New Roman embedded and only the header and footer selectable as text. Your PDF has numerous fonts embedded if I look at its Properties.

I tried CutePDF Writer and BullZip PDF Printer as well. Same thing... just vector outlines, but no embedded fonts.

I also have the problem when printing to Acrobat XI's virtual printer on my main machine.

Any reason why PM wouldn't pass the fonts to the printer?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
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-03-01, 10:24

I have no idea why it doesn't work for you.
I'm using a pretty old version of PrimoPDF, and it defaults to PDF 1.4 -- there don't seem to be any settings to control this font embedding behaviour. Of note when I print I tend to pick "eBook" format to retain as much information as possible while keeping the size small. I'm using the standard Print function from within the browser.
Clearly this isn't something the browser controls because then it would be the same result in my case.
"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

User avatar
billmcct
Keeps coming back
Keeps coming back
Posts: 959
Joined: 2012-09-04, 15:19
Location: Costa Rica & Union City Georgia USA

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

Unread post by billmcct » 2021-03-01, 14:05

Here's one from "Print pages to PDF 0.5.0.2.1" that does have selectable text and clickable links. It used to save scrollable code boxes but alas no longer does.
--------------------------------------------------------------------------------------------------------------
The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

TMINY

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

Unread post by TMINY » 2021-03-01, 17:38

billmcct wrote:
2021-03-01, 14:05
Here's one from "Print pages to PDF 0.5.0.2.1" that does have selectable text and clickable links. It used to save scrollable code boxes but alas no longer does.

Print Pages to PDF does allow selectable text on all sites .pdf
Can you also try a test using the Adobe forum link further up in this thread?

I don't think that extension is viable in Win10-64?

Moonchild wrote:
2021-03-01, 10:24
Clearly this isn't something the browser controls
I've noticed if I disable gfx.downloadable_fonts.enabled, I can make a PDF with embedded fonts.

Also, I did a test in IE and that embeds the fonts.

PM v28 64-bit and 32-bit both have the problem under Win 10 20H2 64-bit. As does FF v52 ESR 32-bit.

Any ideas?

User avatar
Bilbo47
Fanatic
Fanatic
Posts: 238
Joined: 2017-11-18, 04:24

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

Unread post by Bilbo47 » 2021-03-01, 17:47

Confirmed here, using a different browser and different PDF printer. It's gotta be Adobe purposely preventing their pages from being saved to a useful PDF format.

TMINY

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

Unread post by TMINY » 2021-03-01, 18:02

Bilbo47 wrote:
2021-03-01, 17:47
Confirmed here, using a different browser and different PDF printer. It's gotta be Adobe purposely preventing their pages from being saved to a useful PDF format.
It isn't specfic to the Adobe website. I can reproduce on any page with custom fonts-
https://fonts.google.com/

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
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-03-01, 19:50

For the record I have also tested on Windows 10 20H2 x64, Pale Moon 29.0.1 x64. The result is what I attached previously. Yes, I do enable downloadable fonts by default because they are part of webdesign. It is not an inherent problem with the OS or the browser, as far as I can tell.
Please include troubleshooting information so we know your environment this occurs in for you. See sticky in this board.
"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-03-01, 20:07

Moonchild wrote:
2021-03-01, 19:50
Please include troubleshooting information so we know your environment this occurs in for you. See sticky in this board.
Application Basics
------------------

Name: Pale Moon
Version: 29.0.1 (64-bit)
Build ID: 20210205202951
Update Channel: release
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Goanna/4.8 Firefox/68.0 PaleMoon/29.0.1
OS: Windows_NT 10.0
Safe Mode: false

Extensions
----------

Graphics
--------

Features
Compositing: Direct3D 11
GPU Accelerated Windows: 1/1 Direct3D 11 (OMTC)
Asynchronous Pan/Zoom: none
WebGL 1 Driver WSI Info: EGL_VENDOR: Google Inc. (adapter LUID: 0000000000006f76) EGL_VERSION: 1.4 (ANGLE 2.1.0.) EGL_EXTENSIONS: EGL_EXT_create_context_robustness EGL_ANGLE_d3d_share_handle_client_buffer EGL_ANGLE_surface_d3d_texture_2d_share_handle EGL_ANGLE_query_surface_pointer EGL_ANGLE_window_fixed_size EGL_ANGLE_keyed_mutex EGL_ANGLE_surface_orientation EGL_ANGLE_direct_composition EGL_NV_post_sub_buffer EGL_KHR_create_context EGL_EXT_device_query EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_get_all_proc_addresses EGL_KHR_stream EGL_KHR_stream_consumer_gltexture EGL_NV_stream_consumer_gltexture_yuv EGL_ANGLE_flexible_surface_compatibility EGL_ANGLE_stream_producer_d3d_texture_nv12 EGL_EXTENSIONS(nullptr): EGL_EXT_client_extensions EGL_EXT_platform_base EGL_EXT_platform_device EGL_ANGLE_platform_angle EGL_ANGLE_platform_angle_d3d EGL_ANGLE_device_creation EGL_ANGLE_device_creation_d3d11 EGL_ANGLE_experimental_present_path EGL_KHR_client_get_all_proc_addresses
WebGL 1 Driver Renderer: Google Inc. -- ANGLE (Intel(R) HD Graphics Family Direct3D11 vs_5_0 ps_5_0)
WebGL 1 Driver Version: OpenGL ES 2.0 (ANGLE 2.1.0.)
WebGL 1 Driver Extensions: GL_OES_element_index_uint GL_OES_packed_depth_stencil GL_OES_get_program_binary GL_OES_rgb8_rgba8 GL_EXT_texture_format_BGRA8888 GL_EXT_read_format_bgra GL_NV_pixel_buffer_object GL_OES_mapbuffer GL_EXT_map_buffer_range GL_EXT_color_buffer_half_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_float GL_OES_texture_float_linear GL_EXT_texture_rg GL_EXT_texture_compression_dxt1 GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_OES_compressed_ETC1_RGB8_texture GL_EXT_sRGB GL_ANGLE_depth_texture GL_OES_depth32 GL_EXT_texture_storage GL_OES_texture_npot GL_EXT_draw_buffers GL_EXT_texture_filter_anisotropic GL_EXT_occlusion_query_boolean GL_NV_fence GL_EXT_disjoint_timer_query GL_EXT_robustness GL_EXT_blend_minmax GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_pack_reverse_row_order GL_OES_standard_derivatives GL_EXT_shader_texture_lod GL_EXT_frag_depth GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source GL_EXT_discard_framebuffer GL_EXT_debug_marker GL_OES_EGL_image GL_OES_EGL_image_external GL_NV_EGL_stream_consumer_external GL_EXT_unpack_subimage GL_NV_pack_subimage GL_OES_vertex_array_object GL_KHR_debug GL_ANGLE_lossy_etc_decode GL_CHROMIUM_bind_uniform_location GL_CHROMIUM_sync_query GL_CHROMIUM_copy_texture
WebGL 1 Extensions: ANGLE_instanced_arrays EXT_blend_minmax EXT_color_buffer_half_float EXT_frag_depth EXT_shader_texture_lod EXT_texture_filter_anisotropic EXT_disjoint_timer_query MOZ_debug_get OES_element_index_uint OES_standard_derivatives OES_texture_float OES_texture_float_linear OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_s3tc WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_depth_texture WEBGL_draw_buffers WEBGL_lose_context MOZ_WEBGL_lose_context MOZ_WEBGL_compressed_texture_s3tc MOZ_WEBGL_depth_texture
WebGL 2 Driver WSI Info: EGL_VENDOR: Google Inc. (adapter LUID: 0000000000006f76) EGL_VERSION: 1.4 (ANGLE 2.1.0.) EGL_EXTENSIONS: EGL_EXT_create_context_robustness EGL_ANGLE_d3d_share_handle_client_buffer EGL_ANGLE_surface_d3d_texture_2d_share_handle EGL_ANGLE_query_surface_pointer EGL_ANGLE_window_fixed_size EGL_ANGLE_keyed_mutex EGL_ANGLE_surface_orientation EGL_ANGLE_direct_composition EGL_NV_post_sub_buffer EGL_KHR_create_context EGL_EXT_device_query EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_get_all_proc_addresses EGL_KHR_stream EGL_KHR_stream_consumer_gltexture EGL_NV_stream_consumer_gltexture_yuv EGL_ANGLE_flexible_surface_compatibility EGL_ANGLE_stream_producer_d3d_texture_nv12 EGL_EXTENSIONS(nullptr): EGL_EXT_client_extensions EGL_EXT_platform_base EGL_EXT_platform_device EGL_ANGLE_platform_angle EGL_ANGLE_platform_angle_d3d EGL_ANGLE_device_creation EGL_ANGLE_device_creation_d3d11 EGL_ANGLE_experimental_present_path EGL_KHR_client_get_all_proc_addresses
WebGL 2 Driver Renderer: Google Inc. -- ANGLE (Intel(R) HD Graphics Family Direct3D11 vs_5_0 ps_5_0)
WebGL 2 Driver Version: OpenGL ES 3.0 (ANGLE 2.1.0.)
WebGL 2 Driver Extensions: GL_OES_element_index_uint GL_OES_packed_depth_stencil GL_OES_get_program_binary GL_OES_rgb8_rgba8 GL_EXT_texture_format_BGRA8888 GL_EXT_read_format_bgra GL_NV_pixel_buffer_object GL_OES_mapbuffer GL_EXT_map_buffer_range GL_EXT_color_buffer_half_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_float GL_OES_texture_float_linear GL_EXT_texture_rg GL_EXT_texture_compression_dxt1 GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_OES_compressed_ETC1_RGB8_texture GL_EXT_sRGB GL_ANGLE_depth_texture GL_OES_depth32 GL_EXT_texture_storage GL_OES_texture_npot GL_EXT_draw_buffers GL_EXT_texture_filter_anisotropic GL_EXT_occlusion_query_boolean GL_NV_fence GL_EXT_disjoint_timer_query GL_EXT_robustness GL_EXT_blend_minmax GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_pack_reverse_row_order GL_OES_standard_derivatives GL_EXT_shader_texture_lod GL_EXT_frag_depth GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source GL_EXT_discard_framebuffer GL_EXT_debug_marker GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_NV_EGL_stream_consumer_external GL_EXT_unpack_subimage GL_NV_pack_subimage GL_EXT_color_buffer_float GL_OES_vertex_array_object GL_KHR_debug GL_ANGLE_lossy_etc_decode GL_CHROMIUM_bind_uniform_location GL_CHROMIUM_sync_query GL_CHROMIUM_copy_texture GL_EXT_texture_norm16
WebGL 2 Extensions: EXT_color_buffer_float EXT_texture_filter_anisotropic EXT_disjoint_timer_query MOZ_debug_get OES_texture_float_linear WEBGL_compressed_texture_etc WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_s3tc WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context MOZ_WEBGL_lose_context MOZ_WEBGL_compressed_texture_s3tc
Hardware H264 Decoding: Yes; D3D11 blacklisted with DLL igd11dxva64.dll (20.19.15.4331); Using D3D9 API
Audio Backend: wasapi
Direct2D: true
DirectWrite: true (10.0.19041.804)
GPU #1
Active: Yes
Description: Intel(R) HD Graphics Family
Vendor ID: 0x8086
Device ID: 0x0a16
Driver Version: 20.19.15.4331
Driver Date: 11-18-2015
Drivers: igdumdim64 igd10iumd64 igd10iumd64 igd12umd64 igdumdim32 igd10iumd32 igd10iumd32 igd12umd32
Subsys ID: 0a161414
RAM: Unknown

Diagnostics
AzureCanvasAccelerated: 0
AzureCanvasBackend: direct2d 1.1
AzureContentBackend: direct2d 1.1
AzureFallbackCanvasBackend: cairo





Important Modified Preferences
------------------------------

browser.cache.disk.capacity: 358400
browser.cache.disk.filesystem_reported: 1
browser.cache.disk.smart_size.first_run: false
browser.download.importedFromSqlite: true
browser.places.smartBookmarksVersion: 4
browser.startup.homepage_override.buildID: 20210205202951
browser.startup.homepage_override.mstone: 4.8.0
extensions.lastAppVersion: 29.0.1
gfx.crash-guard.d3d11layers.appVersion: 29.0.1
gfx.crash-guard.d3d11layers.deviceID: 0x0a16
gfx.crash-guard.d3d11layers.driverVersion: 20.19.15.4331
gfx.crash-guard.d3d11layers.feature-d2d: true
gfx.crash-guard.d3d11layers.feature-d3d11: true
gfx.crash-guard.status.d3d11layers: 2
gfx.crash-guard.status.d3d9video: 2
media.hardware-video-decoding.failed: false
network.cookie.prefsMigrated: true
places.history.expiration.transient_current_max_pages: 122334
print.printer_CutePDF_Writer.print_bgcolor: false
print.printer_CutePDF_Writer.print_bgimages: false
print.printer_CutePDF_Writer.print_duplex: -437918235
print.printer_CutePDF_Writer.print_edge_bottom: 0
print.printer_CutePDF_Writer.print_edge_left: 0
print.printer_CutePDF_Writer.print_edge_right: 0
print.printer_CutePDF_Writer.print_edge_top: 0
print.printer_CutePDF_Writer.print_evenpages: true
print.printer_CutePDF_Writer.print_footercenter:
print.printer_CutePDF_Writer.print_footerleft: &PT
print.printer_CutePDF_Writer.print_footerright: &D
print.printer_CutePDF_Writer.print_headercenter:
print.printer_CutePDF_Writer.print_headerleft: &T
print.printer_CutePDF_Writer.print_headerright: &U
print.printer_CutePDF_Writer.print_in_color: true
print.printer_CutePDF_Writer.print_margin_bottom: 0.5
print.printer_CutePDF_Writer.print_margin_left: 0.5
print.printer_CutePDF_Writer.print_margin_right: 0.5
print.printer_CutePDF_Writer.print_margin_top: 0.5
print.printer_CutePDF_Writer.print_oddpages: true
print.printer_CutePDF_Writer.print_orientation: 0
print.printer_CutePDF_Writer.print_page_delay: 50
print.printer_CutePDF_Writer.print_paper_data: 1
print.printer_CutePDF_Writer.print_paper_height: -1.00
print.printer_CutePDF_Writer.print_paper_name:
print.printer_CutePDF_Writer.print_paper_size_unit: 0
print.printer_CutePDF_Writer.print_paper_width: -1.00
print.printer_CutePDF_Writer.print_resolution: 600
print.printer_CutePDF_Writer.print_reversed: false
print.printer_CutePDF_Writer.print_scaling: 1.00
print.printer_CutePDF_Writer.print_shrink_to_fit: true
print.printer_CutePDF_Writer.print_to_file: false
print.printer_CutePDF_Writer.print_unwriteable_margin_bottom: 0
print.printer_CutePDF_Writer.print_unwriteable_margin_left: 0
print.printer_CutePDF_Writer.print_unwriteable_margin_right: 0
print.printer_CutePDF_Writer.print_unwriteable_margin_top: 0
print.printer_PrimoPDF.print_bgcolor: false
print.printer_PrimoPDF.print_bgimages: false
print.printer_PrimoPDF.print_duplex: -437918235
print.printer_PrimoPDF.print_edge_bottom: 0
print.printer_PrimoPDF.print_edge_left: 0
print.printer_PrimoPDF.print_edge_right: 0
print.printer_PrimoPDF.print_edge_top: 0
print.printer_PrimoPDF.print_evenpages: true
print.printer_PrimoPDF.print_footercenter:
print.printer_PrimoPDF.print_footerleft: &PT
print.printer_PrimoPDF.print_footerright: &D
print.printer_PrimoPDF.print_headercenter:
print.printer_PrimoPDF.print_headerleft: &T
print.printer_PrimoPDF.print_headerright: &U
print.printer_PrimoPDF.print_in_color: true
print.printer_PrimoPDF.print_margin_bottom: 0.5
print.printer_PrimoPDF.print_margin_left: 0.5
print.printer_PrimoPDF.print_margin_right: 0.5
print.printer_PrimoPDF.print_margin_top: 0.5
print.printer_PrimoPDF.print_oddpages: true
print.printer_PrimoPDF.print_orientation: 0
print.printer_PrimoPDF.print_page_delay: 50
print.printer_PrimoPDF.print_paper_data: 1
print.printer_PrimoPDF.print_paper_height: -1.00
print.printer_PrimoPDF.print_paper_name:
print.printer_PrimoPDF.print_paper_size_unit: 0
print.printer_PrimoPDF.print_paper_width: -1.00
print.printer_PrimoPDF.print_resolution: 600
print.printer_PrimoPDF.print_reversed: false
print.printer_PrimoPDF.print_scaling: 1.00
print.printer_PrimoPDF.print_shrink_to_fit: true
print.printer_PrimoPDF.print_to_file: false
print.printer_PrimoPDF.print_unwriteable_margin_bottom: 0
print.printer_PrimoPDF.print_unwriteable_margin_left: 0
print.printer_PrimoPDF.print_unwriteable_margin_right: 0
print.printer_PrimoPDF.print_unwriteable_margin_top: 0
privacy.sanitize.migrateFx3Prefs: true
ui.osk.debug.keyboardDisplayReason: IKPOS: Keyboard presence confirmed.

Important Locked Preferences
----------------------------

Places Database
---------------

JavaScript
----------

Incremental GC: true

Accessibility
-------------

Activated: false
Prevent Accessibility: 1

Library Versions
----------------

NSPR
Expected minimum version: 4.29
Version in use: 4.29

NSS
Expected minimum version: 3.59.1.1
Version in use: 3.59.1.1

NSSSMIME
Expected minimum version: 3.59.1.1
Version in use: 3.59.1.1

NSSSSL
Expected minimum version: 3.59.1.1
Version in use: 3.59.1.1

NSSUTIL
Expected minimum version: 3.59.1.1
Version in use: 3.59.1.1
OK, support info above. Win10 20H2, PM 29.0.1 x64. This is on a third machine I've tried -- Surface Pro.

TMINY

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

Unread post by TMINY » 2021-03-01, 20:21

I fired up a Win7-32 VM and installed PM v28 and v29 32-bit. Both versions embedded the fonts correctly. (Specifically, on the Google Fonts web page I used for testing, according to PDF Document Properties.)

So maybe this is something with how browsers are sending web fonts for printing in Win x64? It isn't sending fonts, but outlines only.

And as I mentioned before, Chrome, Chromium Edge, and FF are getting around this by including a "Save to PDF" option in their custom print dialog. I'm not sure where to look for any relevant discussion on how these browsers are (not) handling this. Maybe that would yield some clues if something was changed in Win x64 printing.

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-01, 20:57

Here, Windows 10 Pro 64-bit 2004 built-in Microsoft Print to PDF worked on the Adobe page. The text is selectable. Using the Ghostscript PDF printer: not selectable.

Update: The Ghostscript PDF printer works. I did not have it at its defaults earlier.

PrimoPDF. Found an old manual. Per that their Print preset does not embed. Unclear if that is true today. They have other settings that embed (but the resulting file size could be larger than what you want).

Update: I thought I had closed out my browser after changing the preference, and had reloaded the page, but clearly not. In a clean profile, neither worked. My workaround has always been OCR the PDF.

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, 14:54

I did the following:

Brand new profile.

Went to the Adobe site.

After page loads, this is under Console - CSS:

Code: Select all

downloadable font: OS/2: Adjusting head.macStyle (regular) to match fsSelection (font-family: "adobe-clean-serif" style:italic weight:normal stretch:normal src index:0) source: https://use.typekit.net/af/507e89/00000000000000003b9aee49/27/l?primer=7fa3915bdafdf03041871920a205bef951d72bf64dd4c4460fb992e3ecc3a862&fvd=i4&v=3  
csa7wef.css:68:12
downloadable font: hhea: bad caret offset: -56 (font-family: "adobe-clean-serif" style:italic weight:normal stretch:normal src index:0) source: https://use.typekit.net/af/507e89/00000000000000003b9aee49/27/l?primer=7fa3915bdafdf03041871920a205bef951d72bf64dd4c4460fb992e3ecc3a862&fvd=i4&v=3  
csa7wef.css:68:12
downloadable font: OS/2: Adjusting head.macStyle (regular) to match fsSelection (font-family: "adobe-clean" style:italic weight:normal stretch:normal src index:0) source: https://use.typekit.net/af/74ffb1/000000000000000000017702/27/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i4&v=3  
csa7wef.css:32:12
downloadable font: hhea: bad caret offset: -60 (font-family: "adobe-clean" style:italic weight:normal stretch:normal src index:0) source: https://use.typekit.net/af/74ffb1/000000000000000000017702/27/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i4&v=3  
csa7wef.css:32:12
downloadable font: OS/2: Adjusting head.macStyle (regular) to match fsSelection (font-family: "adobe-clean" style:italic weight:300 stretch:normal src index:0) source: https://use.typekit.net/af/a77c89/000000000000000000017700/27/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i3&v=3  
csa7wef.css:50:12
downloadable font: hhea: bad caret offset: -59 (font-family: "adobe-clean" style:italic weight:300 stretch:normal src index:0) source: https://use.typekit.net/af/a77c89/000000000000000000017700/27/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i3&v=3  
csa7wef.css:50:12
downloadable font: OS/2: Adjusting head.macStyle (regular) to match fsSelection (font-family: "adobe-clean" style:normal weight:bold stretch:normal src index:0) source: https://use.typekit.net/af/eaf09c/000000000000000000017703/27/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3  
csa7wef.css:38:12
I searched on this: "downloadable font: hhea: bad caret offset: -59".

Found this:

Firefox throws error "downloadable font: hhea: bad caret offset:" [...] in console

"So in each case, OTS issues a warning message to advise that the font resource is in violation of the OpenType spec requirements (although in these cases it is still usable)."

https://bugzilla.mozilla.org/show_bug.cgi?id=1603367

I deleted this:

Code: Select all

<link rel="stylesheet" href="https://use.typekit.net/csa7wef.css">
I printed the page using the MS Print to PDF and Ghostcript PDF. Selectable text in both.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
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-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.
"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-03-02, 15:49

Moonchild wrote:
2021-03-02, 15:27
I think typekit.net needs to fix their fonts and not rely on browsers to sanitize them for them.
I don't think it is just Adobe. Can you reproduce the problem at this Google page? (Test print just pages 2-3.)
https://fonts.google.com/

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
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-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. Keep in mind that PDF is primarily a visual output format. I've had to educate people many times in my translation profession of that too "Please translate this PDF" isn't that simple, but it seems most people don't understand why. It's closer to a postscript format than a source document.
"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-03-02, 17:10

Moonchild wrote:
2021-03-02, 16:43
Keep in mind that PDF is primarily a visual output format. It's closer to a postscript format than a source document.
I am not the person to argue for what a PDF is or isn't supposed to be... I am just trying to save receipts from the internet with selectable/searchable text. :thumbup:

If this can't be fixed, can you implement a "Save to PDF" feature as FF and Chrome do to work around this issue?
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.
Most PDF writers will embed a subset a font if the character set is less than 100%. This is how they save space. But that's not the case here. The PDF printer doesn't seem to be receiving the fonts from the browser, yes?

TMINY

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

Unread post by TMINY » 2021-03-02, 17:22

Keep in mind, this is working correctly in Win7-32 according to my testing. So something has changed in Win10-64.

I can offer a bounty to get this fixed, if that helps.

Locked