Page 16 of 16

Re: PDF Viewer DLL?

Posted: Sat May 05, 2018 5:10 pm
by KDJ
PdfView version 2018-05-05

Fixed bug in "drag and drop" the tab.

PdfView.zip
(1.72 MiB) Downloaded 109 times

Re: PDF Viewer DLL?

Posted: Wed Jul 25, 2018 7:19 pm
by KDJ
PDFview version 2018-07-25 released.

Changed:
- program icon and title of main window,
- now PDF is opened in new tab by default (Ctrl+O or in files panel - Enter), to open in current tab use Shift+Ctrl+O or in files panel - Shift+Enter (Shift+DoubleClick),
- hotkey Ctrl+Shift+T now is used to restore last closed document; for translate selected text in opened PDF use Alt+T,
- context menu for tabs,
- mouse behavior for tabs:
-- mouse move with left button down - move current tab,
-- left button double click or middle button click on the tab - close this tab,
-- left button double click/middle button click in area after last tab or in empty PDF panel - restore last closed tab (if there is not last closed tab - GetFile dialog),
-- right button click in tab area or in empty PDF panel - show tabs context menu.

Added:
- open previous/next/first/last PDF from directory in which is current document (Main menu -> File -> Open from directory),
- small button to show/hide files panel,
- TOOLTIPs for TABs (visible if PDF name does not fit in the tab),
- move tab (Main menu -> Document -> Move tab),
- close duplicates of current document (Main menu -> Document -> Close -> Duplicates of current document),
- close all duplicated documents (Main menu -> Document -> Close -> All duplicates),
- close all inactive documents (Main menu -> Document -> Close -> All inactive),
- restore last closed tab (Main menu -> Document -> Restore last closed tab),
- page number in list of recent files,
- context menu for list of recent files,
- show/hide status bar (Main menu -> View -> Status bar),
- option in settings - "Don't run PDFview twice",
- option in settings - "Don't open PDF file twice",
- option in settings - "New tab open" (before current, after current, at beginning, at end),
- option in settings - "Colors in files panel",
- in context menu for files panel added options: "Rename", "Delete" and "Properties".

Removed:
- Portuguese and Spanish translations (about 80 percent of strings was not translated).

Added in SumatraPDF.prg library:
- parameter nView in function Sumatra_FileOpen(),
- function Sumatra_View().

PDFview.zip
(8.81 MiB) Downloaded 124 times

Re: PDF Viewer DLL?

Posted: Thu Jul 26, 2018 2:21 am
by Steed
Thanks, usefull utility

Re: PDF Viewer DLL?

Posted: Thu Jul 26, 2018 7:07 am
by danca
Roberto,
I needed to extract from PDF files the underlying text for my DocuMagic software (www.documagic.it) and found a fantastic DLL from Sorax software. You can download a working demo version of the DLL an the complete documentation from Sorax's site. Among other things, the DLL can display PDF files and can be called by Harbour.
BTW, still I did not implement the viewer, only the text extractor. I think it would be of great interest for all to share your experience, if you go that way. Give it a try, it's a nice piece of software, and it's cheap (ah... I forgot to say that it's not for free...).

Dan

Re: PDF Viewer DLL?

Posted: Mon Jul 01, 2019 7:31 pm
by Georg_BA
Good day
I want to thank you once again for the excellent work.
I would like to ask if you could add a function, "close after printing". I don't know if there would be a return value problem?
Setting could be Setting-Options

In Sumatra PDF it's a feature
-exit-when-done: Used in combination with -print-dialog (and -stress-test). SumatraPDF Exits after the Print Dialogue has been dismissed and the document printed.

Thank you in advance for your time.

Re: PDF Viewer DLL?

Posted: Wed Jul 03, 2019 6:01 pm
by KDJ
Georg_BA

It seems to me that it can not be done in a simple way.
SumatraPDF.exe does not signal the end of the printing process.

Also, the command line option "-exit-when-done" is not useful.
For example:

Code: Select all

SumatraPDF.exe -print-dialog -exit-when-done My.pdf
does not show the contents of My.pdf file.

Re: PDF Viewer DLL?

Posted: Thu Jul 04, 2019 7:24 am
by Georg_BA
Thank you for your response
I thought that when the print progress is displayed, the process can be terminated after printing is complete

Regards, Georg

Re: PDF Viewer DLL?

Posted: Thu Jul 04, 2019 8:49 am
by Georg_BA
still picture