PDF-Tools: JoinPDFBookmark

This Forum is for the use of End Users requiring help and assistance for Tracker Software's PDF-Tools.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Post Reply
Nimrod_189
User
Posts: 35
Joined: Wed Sep 23, 2009 8:39 am

PDF-Tools: JoinPDFBookmark

Post by Nimrod_189 »

Hello folks,
Today I created a PDF tool that I can use to combine multiple PDF files into one file. The file names are saved as bookmarks. This works perfectly.

But now I would like to call this PDF tool in a VBNet program.

What exactly should the program call be?
I hope someone can help me here.

Thanks in advance.

Image

And here is my program call:

Code: Select all

    Public Function JoinPDFBookmark() As Boolean
        Dim p As New Process

        Try
            p.StartInfo.FileName = "C:\Program Files\Tracker Software\PDF Tools\PDFXTools.exe"
            p.StartInfo.Arguments = "/RunTool JoinPDFBookmark"
            p.Start()
            p.WaitForExit()
            p.Close()
            Return True
        Catch
            Return False
        End Try

    End Function
But this will not work.


Greeting Nimrod
User avatar
Vladimir G - Tracker Dev
User
Posts: 40
Joined: Thu Nov 30, 2017 1:24 pm

Re: PDF-Tools: JoinPDFBookmark

Post by Vladimir G - Tracker Dev »

Hello Nimrod_189,

The problem is that you are using Tool name instead of the required Tool ID. The Tool Name is not the same as the Tool ID.

There are several ways to get the Tool ID:

1. Right click on tool and choose "Copy Tool Identifier", use it in your command line like: "PDFXTools.exe /RunTool "{Tool ID}"".
For example, for one of my custom tools it will look like: "PDFXTools.exe /RunTool "{693CDFD9-3A76-47E4-9262992C0CEE5CB0}"".

Screenshot 2022-07-17 014859.png
2. Right click on tool and choose "Create Shortcut on Desktop". You will get a Shortcut on desktop, if you open shortcut's properties, you could see Target field with full command to run your tool.

Screenshot 2022-07-17 020705.png
Screenshot 2022-07-17 021910.png

You didn't ask, but I want to mention, that you also could pass input files to your tool using command line. It will look something like that:
PDFXTools.exe /RunTool imagesToPDF "c:\picture1.png" "c:\picture2.png"

For more information you could read help for /RunTool option:
https://help.pdf-xchange.com/pdfxt ... ons_t.html
Vladimir Goshko
Software Developer
Tracker Software Products
Nimrod_189
User
Posts: 35
Joined: Wed Sep 23, 2009 8:39 am

Re: PDF-Tools: JoinPDFBookmark

Post by Nimrod_189 »

Hi Vladimir,

many thanks for the help.
Now my program works fine.

Thank you also for your great and fantastic program. :D

Nimrod
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17765
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

PDF-Tools: JoinPDFBookmark

Post by Tracker Supp-Stefan »

:)
Post Reply