PDF Viewer DLL?

Moderator: Rathinagiri

KDJ
Posts: 216
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland
Been thanked: 260 times

Re: PDF Viewer DLL?

Post by KDJ » Sat May 05, 2018 5:10 pm

PdfView version 2018-05-05

Fixed bug in "drag and drop" the tab.

PdfView.zip
(1.72 MiB) Downloaded 106 times

KDJ
Posts: 216
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland
Been thanked: 260 times

Post by KDJ » Wed Jul 25, 2018 7:19 pm

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 121 times

User avatar
Steed
Posts: 385
Joined: Sat Dec 12, 2009 3:40 pm
Has thanked: 1 time
Been thanked: 2 times

Post by Steed » Thu Jul 26, 2018 2:21 am

Thanks, usefull utility

danca
Posts: 13
Joined: Wed Mar 16, 2016 7:09 pm

Post by danca » Thu Jul 26, 2018 7:07 am

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

Georg_BA
Posts: 39
Joined: Fri Apr 07, 2017 5:31 pm
DBs Used: DBF
Been thanked: 1 time

Post by Georg_BA » Mon Jul 01, 2019 7:31 pm

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.

KDJ
Posts: 216
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland
Been thanked: 260 times

Post by KDJ » Wed Jul 03, 2019 6:01 pm

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.

Georg_BA
Posts: 39
Joined: Fri Apr 07, 2017 5:31 pm
DBs Used: DBF
Been thanked: 1 time

Post by Georg_BA » Thu Jul 04, 2019 7:24 am

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

Georg_BA
Posts: 39
Joined: Fri Apr 07, 2017 5:31 pm
DBs Used: DBF
Been thanked: 1 time

Post by Georg_BA » Thu Jul 04, 2019 8:49 am

still picture
Attachments
Screenshot_2.jpg
Screenshot_2.jpg (24.63 KiB) Viewed 652 times

Post Reply