PDF Explorer > General

Using Custom Scripts with PDF View mode

<< < (3/4) > >>

RTT:
The above code is already implemented in my development version. Just asking for what other commands you think will be useful.

Padanges:
While exploring ideas I've stumbled upon questions:
1) how to open any file (not only in a grid) in a View/Images mode; I guess that's already implemented
2) how to get the name of the file which is currently open in a View/Images mode
3) how to save images cache for a selected file for Images mode (to save load time, if file has not been modified)

RTT:

--- Quote from: Padanges on September 10, 2016, 07:24:31 AM ---While exploring ideas I've stumbled upon questions:
1) how to open any file (not only in a grid) in a View/Images mode; I guess that's already implemented

--- End quote ---
Not implemented. The file would need to be indexed and added to the grid. Something to look at...

--- Quote ---2) how to get the name of the file which is currently open in a View/Images mode

--- End quote ---
This usually corresponds to the grid active row file, so a command to get it should do the job.


--- Quote ---3) how to save images cache for a selected file for Images mode (to save load time, if file has not been modified)

--- End quote ---
This is really not needed, for this specific extract images tool.
The web interface already has this to handle the documents first page thumbnails. If eventually a future version adds thumbnails view to the GUI, it will use the same technique/cached files.

Padanges:

--- Quote ---Not implemented. The file would need to be indexed and added to the grid.
--- End quote ---
I guess to open a file with an internal viewer you need to send a file path to it (perhaps the same is with Images mode too), then why this file path can't be for an unindexed file?


--- Quote ---The web interface already has this to handle the documents first page thumbnails.
--- End quote ---
I installed PDFe with web interface disabled. Can you get a first page thumbnail for any file type (which can be supported for exaple with SumatraPDF) or just a PDF file with web interface?

RTT:

--- Quote from: Padanges on September 13, 2016, 09:08:07 AM ---
--- Quote ---Not implemented. The file would need to be indexed and added to the grid.
--- End quote ---
I guess to open a file with an internal viewer you need to send a file path to it (perhaps the same is with Images mode too), then why this file path can't be for an unindexed file?

--- End quote ---
Yes, but then the Grid, InfoEdit tool, and any other GUI element that is showing information about the selected file, will be desynchronized with what's open in the viewer. It's already possible to have this situation, by changing from the PDFView to the grid PDFInfo view, select a different row and get back to the PDFView while pressing the CTRL key. But in this case it's a user choice, so he knows what's going on. For your schenario it's probably better to, a least, add the file reference to the grid.


--- Quote ---
--- Quote ---The web interface already has this to handle the documents first page thumbnails.
--- End quote ---
I installed PDFe with web interface disabled. Can you get a first page thumbnail for any file type (which can be supported for exaple with SumatraPDF) or just a PDF file with web interface?

--- End quote ---
The web interface can use external renders, or the shell installed thumbnail handlers, to create the thumbnails (see here). The advanced web interface client installer configures the web interface to produce the thumbnails using an included external render (after installed, check the folder C:\MySite\utils), that generates PDF and CHM thumbnails.
Having it configured to use the shell thumbnail handler will enable thumbnails for any file type with a installed thumbnail handler, and that's what will be used by default, in the new version, to handle any other file type.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version