sumatrapdfreader / sumatrapdf Goto Github PK
View Code? Open in Web Editor NEWSumatraPDF reader
Home Page: http://www.sumatrapdfreader.org
License: GNU General Public License v3.0
SumatraPDF reader
Home Page: http://www.sumatrapdfreader.org
License: GNU General Public License v3.0
Is it intended that, when pressing PgUp / PgDn / Home / End while the bookmarks sidebar is focused, it is the bookmarks sidebar that is scrolled (and not the document)?
This is very annoying because the document does not always regain the focus (for example, you can scroll with the mouse wheel while the bookmarks sidebar is focused), and you press PgDn, and then you realize you just scrolled all the way down the bookmarks and opened the last one.
I have an issue which is present in any Sumatra version with any printer and on any OS I have tested it (Windows XP and Windows 7).
The example vector graphics example1.pdf and example2.pdf are not printed correctly. Items are missing and textures are introduced which are not acceptable. I have illustrated this by a scan: after_printing.png; find all files at http://ge.tt/8Ipkv172.
Side facts:
(1) The PDFs are correctly printed with Adobe's Acrobat Reader.
(2) I could not find a printer setting in Sumatra which would have removed or changed the problem.
(3) Sumatra renders the graphics correctly on the monitor.
(4) The vector graphics were created with PStricks in Latex.
SumatraPDF crashes when the nameddest ABOUT is specified with the attached PDF.
I verified with the following command line:
start sumatrapdf -named-dest ABOUT "JetScribe 5.0 Manual.pdf"
SumatraPDF opens, starts the wait cursor, and stops responding.
The PDF is available here:
I verified that the Acrobat Reader opens to the nameddest without problems:
start acrord32.exe /A nameddest=ABOUT "JetScribe 5.0 Manual.pdf"
works just fine.
I often read .PDF's from zip/rared packages.
Each time I open the same PDF it has a different temporary path, so Sumatra PDF cannot remember the position I was on.
Solution would be:
Keep the history of reading positions only by using the file name, and not the path.
As an optimization: To distinguish between two documents which use the same name use the file size. I know, the PDF file size is not yet stored ; ).
(Created as suggested in http://forums.fofou.org/sumatrapdf/topic?id=3184549&comments=1 )
I've found that SumatraPDF 2.5 to 3.0 cannot open certain PDF files. For the time being, these PDF files are all scanned documents. An example can be downloaded from
http://ge.tt/9eZNC172/v/0?c
Nevertheless, SumatraPDF-prerelease-10071-install.exe does not have this problem.
Thanks
I use sumatra for reading epubs, but icon on the books is yellow with PDF letters. This confuses.
Don't know if this has been requested before (tried searching for it but didn't find anything).
It would be very useful if when closing a window with multiple tabs, sumatrapdf recorded which files were opened and upon restarting the application, sumatrapdf re-opened the last instance opened tabs (much like firefox "Show my windows and tabs from last time").
Please repair this serious bug. Don't make me to do it manually.
Hi guys,
thanks for this awesome product. I changed to Linux and can't find a pdf reader which is as good as yours :/ Do you plan a Linux version? ;)
In this case, a device was documented in one chapter, but had info in another chapter. If I could open the linked page in a new tab, it would have made things very easy.
Currently with EbookUI active when you click on the page progress bar there's no way to know exactly which page you'll land up on.
If the page number is shown in a small tooltip or something over the hovering 'hand' pointer that would make it a lot easier to jump to precisely the one required.
pdffonts is a handy tool supplied in the Poppler library. It shows the information of all the fonts used in a PDF file: name, type, encoding, embeded or not etc.
Is it possible to use this in SumatraPDF to show font information as a separate tab in the document Properties dialog? It's always very useful to know which fonts and in what encoding are included in a PDF if for example you're trying to recreate it in HTML5+CSS3 for instance by using https://github.com/coolwanglu/pdf2htmlEX.
name is ray toth [email protected] i use this site https://myportal.supervalu.com its my job mio system to do thing like view paystub, when i go into it with user name and password job gave me and try to view my pay stub with Sumatra PDF tell me i dont have pdf reader from adobe version 7 or higher can you work on this i like to use sumatra pdf to view my pay stub with my jobs online thing thanks in firefox can you work on fixing this? so i can use it with that thanks so much ray toth [email protected]
other use love it thanks
Hello, the Sumatra app is rendering dotted lines without a dot. Usually the second dot in the line. Zooming and scrolling show consistently that the same dot is always missing. The web renderer does not present the bug, and importing to Illustrator and Photoshop also do not present the bug.
Screens attached.
Enjoy ^_^
hi, the bookmark list of an epub file will be shown correctly but the bookmark link doesn't work! an example file is available on request, big thanks for your work, i really like sumatrapdf!
uwe
It would be useful to have an application exit confermation when there are multiple tabs open. Many times I closed all of them when I just wanted to close the active one!
This could also work with feature #28 so that one can close all the tabs but then reopen all of them at once.
Hi,
I use Sumatra PDF to print from command line a lot of pdf documents. I like to use Sumatra PDF because I can choose duplex short or long edge from command line, but now I also need to choose to print multiple pages on one (2-up or 4-up). Is it possible to do this in future versions?
Regards.
Things left to do:
It would be great, if it would be possible to fill interactive PDF documents in SumatraPDF.
It would be great, if it would be possible to add notes to PDF documents.
In a datasheet "PIC16F1788" I searched for "tcy" (The same with "Tcy"). I found about five entries, the first entry on page 411. With another PDF Reader I found 42 entries, the first on page 95.
People occasionally ask for sub-pixel rendering.
I tried to add sub-pixel rendering by:
FT_CONFIG_OPTION_SUBPIXEL_RENDERING
in sumatrapdf_ftoption.h
FT_RENDER_MODE_LCD
in mupdf calls to freetype's font renderingHowever, on my test document there either was no change in text rendering or the change was too subtle for me to notice.
So this is just documenting my test for the future.
pdfium uses it (https://pdfium.googlesource.com/pdfium/+/06b087a3306a521db0d9d0a3e28c3ad0040c7055%5E%21/#F0) so maybe there's code to look at to figure out how they do it.
This is what I tried:
kjk@win7pro32 /cygdrive/c/kjk/src/sumatrapdf
$ git diff
diff --git a/ext/freetype2/config/sumatrapdf_ftoption.h b/ext/freetype2/config/sumatrapdf_ftoption.h
index 2ac2327..b2de079 100644
--- a/ext/freetype2/config/sumatrapdf_ftoption.h
+++ b/ext/freetype2/config/sumatrapdf_ftoption.h
@@ -21,6 +21,9 @@ FT_BEGIN_HEADER
#define CFF_CONFIG_OPTION_OLD_ENGINE
+#undef FT_CONFIG_OPTION_SUBPIXEL_RENDERING
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
+
#ifdef _DEBUG
#define FT_DEBUG_LEVEL_ERROR
#endif
diff --git a/mupdf/source/fitz/font.c b/mupdf/source/fitz/font.c
index bcb12ce..f1944d3 100755
--- a/mupdf/source/fitz/font.c
+++ b/mupdf/source/fitz/font.c
@@ -603,7 +603,7 @@ retry_unhinted:
FT_Outline_Translate(&face->glyph->outline, -strength * 32, -strength * 32);
}
- fterr = FT_Render_Glyph(face->glyph, fz_aa_level(ctx) > 0 ? FT_RENDER_MODE_NORMAL : FT_RENDER_MODE_MONO);
+ fterr = FT_Render_Glyph(face->glyph, FT_RENDER_MODE_LCD);
if (fterr)
{
fz_warn(ctx, "freetype render glyph (gid %d): %s", gid, ft_error_string(fterr));
@@ -756,7 +756,7 @@ do_render_ft_stroked_glyph(fz_context *ctx, fz_font *font, int gid, const fz_mat
FT_Stroker_Done(stroker);
- fterr = FT_Glyph_To_Bitmap(&glyph, fz_aa_level(ctx) > 0 ? FT_RENDER_MODE_NORMAL : FT_RENDER_MODE_MONO, 0, 1);
+ fterr = FT_Glyph_To_Bitmap(&glyph, FT_RENDER_MODE_LCD, 0, 1);
if (fterr)
{
fz_warn(ctx, "FT_Glyph_To_Bitmap: %s", ft_error_string(fterr));
I opened this pdf file: http://ge.tt/9HJTDJ72/v/0 and in the toolbar I could only see which page I'm viewing without the information about the total amount of pages in this pdf. However when I switched to another tab and then got back to that pdf the amount of pages was displayed correctly. Unfortuantely (or fortunately) I couldn't reproduce this bug again. It happened only with this one pdf file.
I get a font problem with certain pdf files recently. It does not occur with all of them, but is probably conditioned on the way the file was composed. However, e.g. this file:
http://faculty.wcas.northwestern.edu/~rsi665/Papers/incomplete_information.pdf
is ill-printed from SumatraPDF. There is no problem in viewing, but when printing all "fi" turn into some glyph. This error does not occur when printing it from other viewers (such as Adobe Reader, e.g.). It occurs on various types of printer types (in fact all I tried). It occurs with several other latex compiled pdf files, but not all.
I suspect a font issue. Is there a way to fix this?
I installed SumatraPDF 3.0
Sumatra does not appear in the Print dialogue box as a printer, in either Firefox or Explorer. I need to use Internet Explorer to print a web page to pdf.
It did so when I was using a previous version of Sumatra, and I was able to print web pages to a pdf file.
As I understand it, when you install a pdf reader it is supposed to add an option to the print menu so you can print to it, but that didn't happen.
Is there a way to configure this with Windows? (I'm using Windows 8.1) Or should I try a previous version of Sumatra?
Hello,
First, Thank you for this fast and small software. I'm using Sumatra mainly for ePub files.
I would like to suggest some kind of way to increase the font size. Maybe a window or simple control+ , control- and control 0 to change the size of the font. I am using a big screen with a resolution of 1920x1080 and for me, the font is small.
Thank you for your attention,
Meier
I write mathematical essays in which it is convenient to use subscripted variables in the equations. For this purpose, I usually use the form
N1
to express N with a subscript of 1. But the sumatrapdf reader displays subscripts like superscripts, so what I see is
N1
Which is wrong!
Again, if the HTML says
N12
which should be displayed as N with a subscript 1, squared, instead I see what appears to be N raised to the power of 12.
N12
Which is wrong!
So it would be nice if sumatrapdf would display superscripts as superscripts, and subscripts as subscripts in the EPUB and MOBI formats, which is what I most often use.
Involves:
Hi,
is it possible to save list of open documents as a simple workspace file?
Is it possible to open documents from previously saved list?
When I'm working on project I need to crawl through 10-20 pdf files. When I'm switching between projects every time I must manually search and reopen all files I need.
Best Regards,
sumsu
My case looks like this, two (or more) documents opened which follow this naming style:
Long writer name - long series name - book title.pdf
Which appears as tab:
[Long artist name - long series n...X]
So I can't see which tab contains which document, making me switch around tabs more often than needed.
800 pixel looks to me like "big enough maximum tab size", but simply making the tab as large as possible would work too if that is simpler to implement.
hi,
just a hint for improvement needs of the pre-release towards version 3.1.
btw. version 3.0 has no problem at all with this kind of pdf.
I like the hidden highlight feature of the prerelease but miss functionality to reverse the highlighting, I propose to toggle if the area will be marked again, does it makes sense for you?
br, uwe
link to killer pdf:
https://www.dropbox.com/s/pxiy28vgnebcarc/pull_2_woche_3%2B4_.7z?dl=0
This is a regression since 3.0
Repro:
The change is not preserved as it should be.
/cc @zeniko - probably due to recent tab handling changes
PDF file
http://www.ex.ua/722051971248
When pdf files are opened the FIRST time or when "Remember opened files" is unchecked, the bookmarks expand randomly.
Test pdf file: http://www.tldp.org/LDP/abs/abs-guide.pdf
Bookmark expansion state differ depend on the order in which files are opened.
If "abs-guide.pdf" is the first file to open when sumatrapdf start up, then all bookmarks are collapsed.
If another pdf file is already opened in sumatrapdf when you open "abs-guide.pdf", then bookmarks are partially expanded.
The other day, I was trying to print a PDF (A4 document) on a printer (also A4). The PDF contained a scanned document (so each PDF page consisted of one big image). I wanted to print the document without any scaling. That was easy to configure in Sumatra.
However, the upper left corner of the PDF page (which contained some black marks, artifacts from scanning) was always positioned at the upper left corner of the rectangle that you obtain after substracting the printer margins from the page size. As a result, the contents of the PDF were moved a little bit to the right and to the bottom when printing. Also, at the right and the bottom side of the page, things were clipped (due to the printer margins) that would not have been clipped if the upper left corner of the PDF page would have been printing to the upper left corner of the physical paper.
Anyhow, Adobe Reader, by default, centeres anything on the page while printing. When printing at 100% (no scaling), the PDF contents would be clipped a little bit on the left, top, right, and bottom, but otherwise the result would be an exact copy of the PDF. I had to use Adobe Reader instead of Sumatra.
Please add a switch (or make it the default) to center all printed contents horizontally and vertically on the page - unless the user selects to scale the PDF contents to fit inside the printer margins, in which case Sumatra should probably center the content within the rectangle obtained by substracting the printer margins.
The new menu in tab mode is a regression over regular menu in that it now takes more clicks to achieve actions.
The goal of redesign is to have the same functionality but with less clicks needed to achieve it.
Implementation-wise, it'll no longer be a menu, because it's too restrictive. It'll be a custom window that will behave like a pop-up.
Design-wise, a few ideas on how to achieve the goal:
TBD: the exact layout of the menu.
Dumping objects ->
C:\Users\kkowalczyk\src\sumatrapdf\src\utils\BaseUtil.h(74) : {49904} normal block at 0x04963640, 14 bytes long.
Data: 6D 00 61 00 73 00 74 00 65 00 72 00 00 00
Some people complained about it in forums, I think.
Investigate the fix described at http://www.reddit.com/r/Surface/comments/2ete4q/recommended_desktop_pdf_reader_with_touch_support/
TLDR - Redefine GF_INERTIA in Touch.h to 0x00000000, build, and enjoy.
Or if you still take candy from strangers and just want a SumatraPDF executable that doesn't flip pages, get it here. **
The original problem with SumatraPDF is it watches for a Windows 'flick gesture' in the horizontal direction and flips the page whenever it sees one. For me, that's always been when I'm really just trying to pan side to side in a wide pdf.
This condition is defined in SumatraPDF.cpp [ver 2.4] or Canvas.cpp [ver 2.11]:
if ((gi.dwFlags & GF_INERTIA) && abs(deltaX) > abs(deltaY)) { annoy_user(); }
Setting GF_INERTIA to 0 will prevent this from ever happening.
Change this line in Touch.h
#define GF_INERTIA 0x00000002
to
#define GF_INERTIA 0x00000000
LaTeX users appreciate the capabilities of SumatraPDF as regards synchronisation between source file and the resulting .pdf, through .synctex files, which works fine. However, as these files are rather bulky, we have two possibilities:
Store them, as the myriad of other auxiliary files generated by LaTeX and friends, in a .\TeXAux subdirectory of the working directory. This is very useful to easily find source documents in directories.
Compress them to a .synctex.gz format.
The issue is that in either case , forward and inverse search do not work any more. Would it be possible to add these features: understanding synctex.gz files and looking for them in subdirectories of the working directory? All LaTeX users who work with SumatraPDF would really be very grateful.
Best regards,
Bernard Alfonsi
This only applies to tabs ui mode.
We need to implement drag&drop of tabs, with the following behavior:
As a bonus, when drag&drop is initated, the drag image is a thumbnail of the document.
When dragging out the last tab of the window, we close the window.
This is not trivial to repro, but the basic procedure is:
If you're lucky, you'll get: HEAP[sumatrapdf.exe]: HEAP: Free Heap block 7673e28 modified at 7673ee8 after it was freed
The variable that was modified after free was most likely PageTextCache on find thread (see below)
>dd 0x7673e28
0x07673E28 1804001c 00269357 07c70530 07a6a3f0
0x07673E38 feeefeee feeefeee feeefeee feeefeee
0x07673E48 feeefeee feeefeee feeefeee feeefeee
0x07673E58 feeefeee feeefeee feeefeee feeefeee
>dd 0x7673ee8
0x07673EE8 00000435 feeefeee feeefeee feeefeee
0x07673EF8 feeefeee feeefeee feeefeee feeefeee
0x07673F08 1e3382fe 1c269346 07572010 07674038
0x07673F18 00e351a0 00000019 00000030 00000001
UI thread that's crashing:
>kb
Index Function
--------------------------------------------------------------------------------
1 ntdll.dll!_RtlpBreakPointHeap@4�()
2 ntdll.dll!_RtlpCoalesceFreeBlocks@16�()
3 ntdll.dll!@RtlpFreeHeap@16�()
4 ntdll.dll!_RtlFreeHeap@12�()
5 ntdll.dll!_RtlDebugFreeHeap@12�()
6 ntdll.dll!@RtlpFreeHeap@16�()
7 ntdll.dll!_RtlFreeHeap@12�()
8 kernel32.dll!_HeapFree@12�()
9 SumatraPDF.exe!_free_base(void * pBlock=0x07673dc8)
10 SumatraPDF.exe!_free_dbg_nolock(void * pUserData=0x07673de8, int nBlockUse=1)
11 SumatraPDF.exe!_free_dbg(void * pUserData=0x07673de8, int nBlockUse=1)
12 SumatraPDF.exe!operator delete(void * pUserData=0x07673de8)
13 SumatraPDF.exe!PageTextCache::`scalar deleting destructor'(unsigned int)
14 SumatraPDF.exe!DisplayModel::~DisplayModel()
15 [External Code]
16 SumatraPDF.exe!TabInfo::~TabInfo()
17 [External Code]
18 SumatraPDF.exe!TabsOnCloseWindow(WindowInfo * win=0x001eac40)
19 SumatraPDF.exe!CloseWindow(WindowInfo * win=0x001eac40, bool quitIfLast=false, bool forceClose=false)
*20 SumatraPDF.exe!CloseTab(WindowInfo * win=0x001eac40, bool quitIfLast=false)
21 SumatraPDF.exe!FrameOnCommand(WindowInfo * win=0x001eac40, HWND__ * hwnd=0x001d02bc, unsigned int msg=273, unsigned int wParam=65937, long lParam=0)
22 SumatraPDF.exe!WndProcFrame(HWND__ * hwnd=0x001d02bc, unsigned int msg=273, unsigned int wParam=65937, long lParam=0)
23 [External Code]
24 SumatraPDF.exe!WndProcFrameRateAssociated(HWND__ * hwnd=0x001d02bc, unsigned int msg=273, unsigned int wp=65937, long lp=0, unsigned int uIdSubclass=0, unsigned long dwRefData=2007424)
25 [External Code]
26 SumatraPDF.exe!RunMessageLoop()
27 SumatraPDF.exe!WinMain(HINSTANCE__ * hInstance=0x009b0000, HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x001b3062, int nCmdShow=10)
28 [External Code]
Find thread is still going:
>kb
Index Function
--------------------------------------------------------------------------------
1 [External Code]
2 SumatraPDF.exe!ScopedCritSec::~ScopedCritSec()
*3 SumatraPDF.exe!PageTextCache::GetData(int pageNo=93, int * lenOut=0x07673ee8, geomutil::RectT<int> * * coordsOut=0x00000000)
4 SumatraPDF.exe!TextSearch::FindStartingAtPage(int pageNo=93, ProgressUpdateUI * tracker=0x088d65c0)
5 SumatraPDF.exe!TextSearch::FindNext(ProgressUpdateUI * tracker=0x088d65c0)
6 SumatraPDF.exe!FindThread(void * data=0x088d65c0)
7 [External Code]
Hi,
how can you save all open tabs into one Favorite / Bookmark?
The new tabbed view feature is really great.
When working on a specific subject it is very nice to have a bunch of relevant docs grouped together.
So naturally I am looking for a way to add a bookmark or favorite where the whole group of documents is contained.
This would allow me to easily switch between subjects e.g. "Gardening", "Dog care", "Programming".
This feature would be kind of equivalent to firefox "bookmark all open tabs", and "open all bookmarks in tabs". With the mayor difference to have just one bookmark / favorite for all open tabs.
This feature would complement the feature of reopening last used tabs.
Thank you for reading,
Axel.
Hi,
I've found out that sumatra 3.0 sends to printer nearly 2 times more data than sumatra 1.8 when printing the same document on the same printer, and what's more important, the old sumatra prints faster.
I've HP LaserJet 5100 printer which can shoot 15ppm. It's connected via 100Mbps ethernet so it is not a matter of connection.
When printing with Sumatra 3.0, printer stops after every page and wait for data. When printing with oldest software, there is nearly constant stream of printed pages, one-by-one.
It happens whenever I've to print 10 pages or 200 pages.
Best Regards,
sumsu
I think that an updated set of icons would make sumatra look significantly better.
I have taken the liberty to play around with some icons and update the bmp file which can be found on my forked repo (https://github.com/alexng8/sumatrapdf).
They look best on the 3.0 version. The 3.1 version seems to have the icons streched.
I've also uploaded a side by side comparison :
I should mention that I am not a designer, and I got the icons from http://iconmonstr.com/. Here's their licencing policy : http://iconmonstr.com/license/
Steps to reproduce:
(on 32-bit XP Home)
I had downloaded and then tried to open the PDF from the "Duo Footprint PDF" link, for a file named "duo_footprint_tech.pdf", on this webpage (it's architectural details about a home lift):
http://www.stiltz.co.uk/drawings.html
Sumatra opened and showed a big white empty page, then there was quite a long pause, then a message box saying it had crashed and suggesting I click 'Cancel' to help you (somehow). I clicked that but nothing else happened (though XP's Windows Explorer crashed immediately afterwards necessitating a reboot).
On reboot I found - by good luck - in %TEMP% (which I look in on each startup to clear out dross) a folder named "SumatraPDF-symbols". Do you need want me to zip this up, upload it somewhere and send you the URL?
In the view settings, add a checkbox "Not wider than window". When activated, SumatraPDF shall scale a document down to fit inside the window widthwise, should the window be slimmer than the document at the preset magnification.
This would be helpful on screens that are wide enough to fit a document inside at 100%, but can not fit two documents in side-by-side arrangement. In this case, the documents would be reduced to match their window's width.
This is similar to IrfanView's "Fit only big images to window" magnification option.
SumatraPDF.exe /uninstall should be equivalent to uninstall.exe and we don't need a separate uninstall.exe binary.
Steps:
Tab colour is determined by wallpaper colour, with some wallpapers tab name becomes harder to read.
Should be independent like in browsers, where window colour is affected, but tabs are ok.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.