sumatrapdf
3.4.6rel
About: Sumatra PDF is a free PDF, eBook (ePub, Mobi), XPS, DjVu, CHM, Comic Book (CBZ and CBR) reader for Windows. Source code.
![]() ![]() |
SumatraPDF is a multi-format (PDF, EPUB, MOBI, FB2, CHM, XPS, DjVu) reader for Windows under (A)GPLv3 license, with some code under BSD license (see AUTHORS).
More information:
To compile you need latest Visual Studio 2022. Free Community edition works.
Open vs2022/SumatraPDF.sln
and hit F5 to compile and
run.
For best results use the latest release available as that's what I use and test with. If things don't compile, first make sure you're using the latest version of Visual Studio.
Here's more developer information.
Notes on targets:
asan
target is for enabling address sanitizerDocs:
Flags:
Can be set with env variable:
ASAN_OPTIONS=halt_on_error=0:allocator_may_return_null=1:verbosity=2:check_malloc_usable_size=false:print_suppressions=true:suppressions="C:\Users\kjk\src\sumatrapdf\asan.supp"
In Visual Studio, this is in Debugging
,
Environment
section.
Note:
ASAN_OPTIONS=detect_leaks=1
(i.e.
memory leaks) doesn't work. Unix version relies on tcmalloc so this
might never work Suppressing issues: https://clang.llvm.org/docs/AddressSanitizer.html#issue-suppression
Note: I couldn't get suppressing to work.