Set Metadata to PDF by PDF Tools

Hello again:
 
I want to create pdfs from multiple tiffs.
I would think from the documentation that this would work but it does not.
 
img2pdf.exe "-$" "XXXXXXXXX" -d HLd -u HLu -k "key-info" -o "j:\A2011-Carl-Project\pdf-out\SS714850-SS714851.pdf" "j:\A2011-Carl-Project\Tiff-in\001\SS714850.Tif j:\A2011-Carl-Project\Tiff-in\001\SS714851.Tif"
 
Also, with img2pdf.exe, can one create and poplulate custom metadata as in the toolkit?
 
Thanks.
=================================
Please run following command line to try again,
 
img2pdf.exe "-$" "XXXXXXXX" -d HLd -u HLu -k "key-info" -o "j:\A2011-Carl-Project\pdf-out\SS714850-SS714851.pdf" "j:\A2011-Carl-Project\Tiff-in\001\SS714850.Tif" "j:\A2011-Carl-Project\Tiff-in\001\SS714851.Tif"

>>Also, with img2pdf.exe, can one create and poplulate custom metadata
>>as in the toolkit?
 
img2pdf.exe can't poplulate custom metadata, however, you can use our Advanced PDF Tools Command Line product to poplulate custom metadata, Advanced PDF Tools Command Line product can be downloaded from following page,
 
http://www.verypdf.com/pdfinfoeditor/index.html

VeryPDF
===================================
Thank you - this worked.
I will try the custom properties in the tool kit which I have already.
 
Lets say I have two custom fields:
TO: with the value "Tom"
FROM: with the value "Dick"
 
Here is the syntax
pdftools -i "C:\input.pdf" -o "C:\output.pdf" -y "key1=value1,key2=value2"    
 
So, should the last part of the command then read
 
....   -y "TO: = Tom, FROM:=Dick"
 
or
 
....   -y "TO:(Tom) /FROM:(Dick)"
 
Thanks.

==================================
You can use following command line to try,
 
pdftools -i "C:\input.pdf" -o "C:\output.pdf" -y "TO: = Tom, FROM:=Dick"
 
the following command line will work fine for you too,
 
pdftools -i "C:\input.pdf" -o "C:\output.pdf" -y "/TO:(Tom) /FROM:(Dick)"

VeryPDF
==================================
Thank you.
It works.
 
Also, I need to attach a document to a pdf file.
I cannot seem to find command to do this in pdftools.
 
pdftk has this:
attach_files < attachment filenames | PROMPT >[ to_page < page number | PROMPT > ]
===================================

Please refer to following web page for more information,
 
http://www.verypdf.com/pdfinfoeditor/attach-files-to-pdf.html
 
QUESTION: How to use PDF Attachment (attach files into PDF file) function in Advanced PDF Tools Command Line product?

ANSWER: Please refer to following steps,

1. Please download Advanced PDF Tools Command Line from following URL,

http://www.verypdf.com/pdfinfoeditor/advanced_pdf_tools_cmd.zip

2. Unzip .zip package to a folder, e.g., C:\pdftools folder,

3. Run following command line to attach files into your PDF files,

Attach various files to PDF files:

pdftools -S "attachfiles=C:\1.txt|C:\2.jpg|C:\3.pdf" -i C:\in.pdf -o C:\out.pdf
pdftools -S "attachfiles=C:\*.*" -i C:\in.pdf -o C:\out.pdf
pdftools -S "attachfiles=C:\filelist.lst" -i C:\in.pdf -o C:\out.pdf
pdftools -S collection=true -S "attachfiles=C:\filelist.lst" -i C:\in.pdf -oC:\out.pdf

4. OK.

You can purchase Advanced PDF Tools Command Line product from following page,

http://www.verypdf.com/pdfinfoeditor/index.html#dl

VeryPDF
=================================
I have simplified this by creating a batch file and putting all the files in the same folder.

pdftools.exe "-$" "XXXXXXXXXXXXXX" -S "attachfiles=test.csv" -i pdfin.pdf -o out.pdf

Does not work.
==================================
Please use full pat to try again, can you work fine with full path?

pdftools.exe "-$" "XXXXXXXXXXX" -S "attachfiles=C:\test.csv" -i pdfin.pdf -o out.pdf

OR

pdftools.exe "-$" "XXXXXXXXXXX" -S "attachfiles=C:\*.*" -i pdfin.pdf -o out.pdf

VeryPDF
=================================
Thank you. I thought I had downloaded the new version - somehow I mixed it up with the old. Anyway, the attachment script works

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in Advanced PDF Tools and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!