Bug 137605 - Hyperlinks not created when printing to .xps on Windows 10
Summary: Hyperlinks not created when printing to .xps on Windows 10
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: MSO-Formats
  Show dependency treegraph
Reported: 2020-10-19 21:22 UTC by tr00don
Modified: 2020-10-21 23:14 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description tr00don 2020-10-19 21:22:40 UTC
Hyperlinks in .odt file are not created when printing to .xps on Windows 10 using Microsoft XPS Document Writer virtual printer

Steps to Reproduce:
1. Create new .odt (Write) file on Windows 10.
2. Add some text; select part of text (e.g., a word).
3. Add hyperlink (URL) to selected text (e.g., https://www.google.com).
4. Print document to .xps file using virtual printer Microsoft XPS Document Writer.
5. Open newly created .xps file in any viewer (e.g., Microsoft Edge) and try opening/clicking the hyperlink.
6. Note: Hyperlink successfully opens in system Web browser if .xps document is created either by saving to .xps in Microsoft Word, or by opening a .docx file created in the same way, printing to .pdf, and finally printing the .pdf to .xps using Microsoft XPS Document Writer.

Actual Results:
Cannot open hyperlink

Expected Results:
Successfully open hyperlink in system browser

Reproducible: Always

User Profile Reset: No

OpenGL enabled: Yes

Additional Info:
Version: (x64)
Build ID: 0ce51a4fd21bff07a5c061082cc82c5ed232f115
CPU threads: 8; OS: Windows 10.0 Build 18363; UI render: default; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded
Comment 1 V Stuart Foote 2020-10-19 22:52:04 UTC
How is this a LibreOffice issue?

"Print document to .xps file using virtual printer Microsoft XPS Document Writer"

LibreOffice has no established native support for XPS/Open XPS (see bug 61195); and Microsoft has deprecated their PDF work alike--dropping their Reader, and hiding the XPS Viewer app from Windows 10.

Ghostscript XPS will parse the result. But there also, MS XPS Document Writer virtual printer does not produce viable URL/UNC.

IMHO => NAB; and likewise => WF for enhancement.
Comment 2 tr00don 2020-10-19 23:10:38 UTC
I think this is LO-related because, as I explained, printing to .xps from a .pdf creates a valid hyperlink whereas printing to .xps from Writer does not.