Recent Posts

Pages: 1 ... 7 8 [9] 10
81
Ideas/Suggestions / Filtering on Fields
« Last post by puckman on December 26, 2021, 03:44:13 PM »
When filtering the database/data-disk files on fields corresponding to columns/metadata for pdfs, normally all the fields are checked except content.  Would it possible to add an button in the filter box that can select/unselect all in the same context as Windows 10 incorporates in file explorer?
82
Ideas/Suggestions / Re: Comments Flattener
« Last post by nightslayer23 on December 22, 2021, 12:12:06 AM »
Hi again!

is this also possible for tapping into Acrobat's preflight options?

Preflight > "Discard hidden layer content and flatten visible layers"

83
Ideas/Suggestions / Re: How to extract single layer from geoPDF
« Last post by RTT on December 19, 2021, 02:04:08 AM »
Set only that layer visible and print the document to PDF, e.g. using the Windows included "Microsoft Print to PDF" printer.
84
Ideas/Suggestions / How to extract single layer from geoPDF
« Last post by Mike Hoeck on December 18, 2021, 05:36:28 AM »
How can I extract and save a single layer from a georeferenced PDF?
85
General / Re: PDF Explorer Web Interface, API based, Client.
« Last post by RTT on November 18, 2021, 01:43:32 AM »
Sure. Send it to the email address you can find in the program about box.
86
General / Re: PDF Explorer Web Interface, API based, Client.
« Last post by Andi on November 16, 2021, 09:24:19 AM »
Yes, still an active project.

Thats great !

We have an special request, can we send this via email to you ?
87
General / Re: PDF Explorer Web Interface, API based, Client.
« Last post by RTT on November 15, 2021, 08:29:02 PM »
Yes, still an active project.
88
General / Re: PDF Explorer Web Interface, API based, Client.
« Last post by Andi on November 15, 2021, 03:57:19 PM »
Hi i found this site today and first question is:

You still work on your software ?
89
General / Re: Using dll with python
« Last post by ekopta on October 28, 2021, 01:03:10 AM »
I should have mentioned that the dll only works with 32-bit Python installations.  :-[
90
General / Using dll with python
« Last post by ekopta on October 28, 2021, 12:59:26 AM »
I've found the way to use PdfShellTools.dll with python, and here's the basic recipe. This doesn't format the text input to all the particular specifications PdhShellTools requires; it's just about getting it to the dll.

Code: [Select]
from ctypes import c_int, WINFUNCTYPE, WinDLL
from ctypes.wintypes import HWND, HINSTANCE, LPSTR


def setup():
    """Set dll up to run."""
    DLLNAME = 'C:/Program Files (x86)/PDF-ShellTools/PDFShellTools.dll'
    dll = WinDLL(DLLNAME)
    prototype = WINFUNCTYPE(None, HWND, HINSTANCE, LPSTR, c_int)
    paramflags = ((1, 'hwnd', 0), (1, 'hinst', 0), (1, 'IpszCmdLine', ""),
                  (1, 'nCmdShow', 0))
    return (dll, prototype, paramflags)


def make_function(pdfstname, dll, prototype, paramflags):
    """Make a function to run PdfShellTools action from python."""
    return prototype((pdfstname, dll), paramflags)


def run_dll_function(function, param, file):
    """Run function in dll. Format param & file nicely elsewhere."""
    dllinput = param + " " + file
    function(IpszCmdLine=LPSTR(dllinput.encode('utf-8')))


dll, prototype, paramflags = setup()
set_metadata = make_function('SetMetadata', dll, prototype, paramflags)
pdfstparams = '"Metadata=Title=SomeTitle"'
pdfstfiles = 'afile.pdf'
run_dll_function(set_metadata, pdfstparams, pdfstfiles)

My guess is that you only want to do the setup part once to realize the full speed gain. It's probably good to minimize the calls to make_function as well. I haven't looked into performance concerns yet.
Pages: 1 ... 7 8 [9] 10