PDF Viewer DLL?

Moderator: Rathinagiri

KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: PDF Viewer DLL?

Post by KDJ »

PdfView version 2018-05-05

Fixed bug in "drag and drop" the tab.

PdfView.zip
(1.72 MiB) Downloaded 498 times
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: PDF Viewer DLL?

Post 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 525 times
User avatar
Steed
Posts: 427
Joined: Sat Dec 12, 2009 3:40 pm

Re: PDF Viewer DLL?

Post by Steed »

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

Re: PDF Viewer DLL?

Post 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
Georg_BA
Posts: 106
Joined: Fri Apr 07, 2017 5:31 pm
DBs Used: DBF

Re: PDF Viewer DLL?

Post 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.
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: PDF Viewer DLL?

Post 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.
Georg_BA
Posts: 106
Joined: Fri Apr 07, 2017 5:31 pm
DBs Used: DBF

Re: PDF Viewer DLL?

Post 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
Georg_BA
Posts: 106
Joined: Fri Apr 07, 2017 5:31 pm
DBs Used: DBF

Re: PDF Viewer DLL?

Post by Georg_BA »

still picture
Attachments
Screenshot_2.jpg
Screenshot_2.jpg (24.63 KiB) Viewed 11720 times
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: PDF Viewer DLL?

Post by AUGE_OHR »

hi,

i´m late with my Question but i´m still a Newbie under harbour / HMG ;)

a.) can i use multi Instance to show multi PDF in different Window
b.) how can i make "Thumbnail" from PDF
c.) i know i can search ... but is it possible without show Form

if you know Filename or Part of it you can find file ... but most you just have a "Keyword" to search.
i know i can use M$ Search when include PDF. it also can search "inside" a PDF for "Keyword"

i have try it under Xbase++ with Acrobat and ActiveX but that is to slow
SumatraPDF seem so fast to load PDF so i want to try it under harbour / HMG

Question : how "automate" search of "Keyword" in PDF File :idea:
have fun
Jimmy
KDJ
Posts: 243
Joined: Mon Sep 05, 2016 3:04 am
Location: Poland

Re: PDF Viewer DLL?

Post by KDJ »

PDFview version 2020-04-13

Added:
- support for SumatraPDF version 3.2; PDFview now can work with SumatraPDF 3.1.2 and 3.2,
- in main menu "File" -> "Print Ctrl+Shift+P" for print any file directly without preview,
- in files panel - contextmenu item "Print Ctrl+Alt+P" for print selected file directly without preview.

Changed:
- hotkey Ctrl+Shift+P now is used to print any file directly without preview,
- to split PDF into single pages - use Ctrl+Shift+S.

In SumatraPDF.prg library added functions:
Sumatra_FilePrintDirectly
Sumatra_Version
Sumatra_Command
GetFileVersion

PDFview_source.7z
(66.72 KiB) Downloaded 311 times
Post Reply