Released · v1.1.0 · open sourceOpen-source tool · Nov 2026

hinote2pdf: Huawei Notes handwriting to lossless vector PDF

An open-source converter that turns Huawei Notes .hinote files into PDFs whose ink is pure vector geometry: sharp at any zoom, faithful to pen pressure, colour and translucency, on top of your imported PDFs and books or on its own.

PDFVector graphicsHandwritingHuawei NotesOpen sourcePython
A real handwritten page next to a 1080 px image of it, both at 7× zoom.

Overview

Huawei Notes on MatePad tablets and Huawei phones keeps handwriting as strokes in its own .hinote files. Taking those notes anywhere else usually means pictures of the pages, which blur when you zoom in and print poorly. hinote2pdf converts .hinote files into PDFs whose ink is vector geometry, so a page is exact at 100 % and at 6400 %.

Each stroke is rebuilt from its recorded pen samples: a smooth curve through every point, a width that follows pen pressure and the tip of the pen that drew it. Translucent pens are built up stamp by stamp inside exact radial soft masks, so overlaps darken as they do on the tablet; highlighters are painted once per stroke and stay see-through; eraser cuts fall exactly where they were made.

Notes written on imported PDFs and books keep those pages, embedded unchanged under the ink, so their text stays selectable and searchable; or the ink is exported on its own. Output is lossless, or HQ lossy: still vector, about four times smaller. Dropping notes on the Windows launcher opens a small window with these choices.

What I built

  • A small Python package (pypdf only) with a command-line interface, a Windows drag-and-drop launcher and an options window: background on or off, lossless or HQ lossy, editable ink, bolder thin pens.
  • A PDF writer that emits strokes as round-capped constant-width runs within about 2 µm of the exact outline on A4 (about 10 µm in HQ mode), optional editable ink annotations, and toggleable layers for handwriting and highlighter.
  • Exact soft-edged translucency: per-stamp radial shadings multiplied inside luminosity soft masks, so the accumulated alpha 1 − ∏(1 − a·T(r)) is evaluated per pixel at any zoom.
  • Book-friendly backgrounds: each imported page is copied with only the fonts and images its content uses, so ten annotated pages of a 150-page book come to 2.4 MB instead of 29 MB.
  • A self-check against the note's own page previews, tested on a real 15-page handwritten note, plus unit tests and a sample note to try without a tablet.

Real notes and sample output

Run it

$ pip install git+https://github.com/kahyaoglu20/hinote2pdf
$ hinote2pdf "my note.hinote"
$ hinote2pdf "my note.hinote" --quality hq --no-background
$ hinote2pdf notes/ -o pdfs/ --annotations
$ hinote2pdf "my note.hinote" --verify --weight 1.3