HTML import without changing font

Creating a macro - Writing a Script - Using the API

HTML import without changing font

Postby martinrame » Tue Apr 02, 2019 2:55 pm

Hi, I'm importing very simple HTML documents using insertDocumentFromURL, but noticed the imported HTML files use Times New Roman font while the main document uses another one, is there a property in the HTML filter to allow me to use the same font as the main document?.
LibreOffice 5.3 on Ubuntu 16.04
Posts: 6
Joined: Tue Dec 13, 2016 10:07 pm

Re: HTML import without changing font

Postby JeJe » Tue Apr 02, 2019 3:29 pm

Don't know, but you can easily apply it afterwards:

Code: Select all   Expand viewCollapse view
oCurs.charfontname = fontnameyouwant
Openoffice 4.1.6
Windows 8
Posts: 1322
Joined: Wed Mar 09, 2016 2:40 pm

Return to Macros and UNO API

Who is online

Users browsing this forum: No registered users and 6 guests