Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
3

How can I make Web Capture use an embeddable font for HTML buttons?

Explorer ,
Sep 08, 2023 Sep 08, 2023

How can I make Web Capture use an embeddable font for HTML buttons? Or more generally, how can I influence the fonts which Acrobat's "Create PDF from Web Page" feature selects for HTML features apart from body text? Can I have Acrobat apply a cascading style sheet to the web page as it creates the PDF?

 

Here is the problem I ran into. I used Acrobat to Create a PDF from a Web Page that had a list of items (https://teimec2023.uni-paderborn.de/program.html). Each item had some keywords draw in boxes. Those boxes were represented in the page's HTML as Button entities. The page's style directives said only that the button font should be sans-serif. Acrobat converted those HTML buttons in to PDF Annotation objects. The font it selected for the Annotation object was Lucida Grande, a macOS system font that, while san-serif, does not permit embedding into PDF files. Acrobat succeeded in creating a PDF file that represented the HTML page well. Next, I attempted to use Acrobat's File… Export as other… PDF/A function to create a PDF/A version of the web page. This failed, because Acrobat could not embed the Lucida Grande font used in the button Annotations. Good for Acrobat, it respected the font's restrictions. But because of Web Capture's earlier font choice, I now cannot easily make a PDF/A version of the captured PDF.

 

The best solution seems to be to control the font choices of the Web Capture feature. If it would select an embeddable font like Arial, instead of Lucida Grande, as the font for the Annotations which correspond to the HTML Button entities, then the result would be a PDF file which I could convert to PDF/A. Is there such a control?

 

A flexible mechanism for controlling the many such choices which Web Capture must make when converting HTML features to PDF would be a user-provided Cascading Style Sheet which Web Capture applied to the HTML before converting. Is there a way to provide Web Capture some kind of CSS?

 

In the Create PDF from a Web Page dialogue, pressing the Settings… button causes a Web Page Conversion Settings dialogue to appear. In the General tab, under Conversion Settings, selecting File Type of HTML and pressing the Settings button causes an HTML Conversion Settings dialogue to appear. This has a Language Specific Font Settings section, which has a setting for a default font. This appears to apply to the font used for HTML text content, not for HTML buttons. I do not see a setting in this dialogue regarding HTML buttons or cascading style sheets. 

 

I am using Adobe Acrobat Pro, Continuous Release version 2023.003.20215 on macOS Monterey 12.6.8 with an M1 Max CPU.

TOPICS
Create PDFs , General troubleshooting , Modern Acrobat , PDF
231
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation