Skip to content

Xps 2 markdown

onenote can save a section as xps fife or single website file (mft)
and also export pdf
=>
create a seperate section “transfer”
copy a page in that section
save as xps or mft

now transform the resulting file

using pandoc

~~pandoc -s example30.docx –wrap=none –reference-links -t markdown -o example35.md~~
pandoc -s /mnt/temp/transfer.xps --wrap=none --reference-links -t markdown -o /mnt/temp/.md

[WARNING] Could not deduce format from file extension .xps
Defaulting to markdown
UTF-8 decoding error in /mnt/temp/transfer.xps at byte offset 22 (f5).
The input must be a UTF-8 encoded text.

is het XPS file format
file /mnt/temp/transfer.xps => Microsoft OOXML
geen encoding ?
file -i /mnt/temp/transfer.xps => /mnt/temp/transfer.xps: application/octet-stream; charset=binary

iconv -f [encoding] -t [encoding] -o [newfilename] [filename]
https://www.tecmint.com/convert-files-to-utf-8-encoding-in-linux/

or online webtools

such as https://products.groupdocs.app/conversion/xps-to-md
table format is not kept