Please enable JavaScript to view this site.

Navigation: Developer Information > Command Line Interface

Command Line PDF Add Bookmarks From CSV File

Scroll Prev Top Next More

PDF Add Bookmarks From CSV File Command Line Format

 

win2pdfd.exe addbookmarksfromcsv "sourcepdf" "bookmarks.csv" "destpdf"

 

This command allows you to automatically add a list of clickable bookmarks to a PDF using a simple Comma Separated Value (CSV) text file.

sourcepdf: The original PDF file.

bookmarks.csv: The file containing your list of bookmarks.

destpdf: The name of the new PDF with bookmarks added. (If you use the same name as the source, it just updates the original file).

 

Each line in your CSV represents one bookmark. Use this format:

"Bookmark Name", Page Number

 

If your bookmark is...

Write it like this in the CSV:

Simple

Introduction, 1

Contains a comma

"Chapter 1, The Beginning", 5

 

Any file names that contain spaces must be enclosed with quotation marks. The "sourcepdf" can be a local file path, or an web address (URL) to an existing PDF.

 

This feature requires a licensed version of Win2PDF. Contact us for a time limited evaluation license.

 

Returns 0 on success, and a Windows system error code on failure.

 

See also: Command Line PDF Add Bookmark, Command Line PDF Add Bookmark After Search