Can I extract first letter to rename PDF files?
Question
Solution
- Add PDF Documents: select "File->Add PDF Document";
- Choose "Rename Method->Advanced", then input script as follows:
function GetShortName(fname:string):string;
var
p:Integer;
tmpstr:string;
begin
Result:='';
tmpstr:=Trim( fname)+' ';
p:= Pos(' ',tmpstr);
while p>1 do
begin
Result:= Result+copy(tmpstr,1,1);
tmpstr:=Copy(tmpstr,p+1,Length(tmpstr)-p);
p:= Pos(' ',tmpstr);
end;
end;
begin
newfilename:=GetShortName(filename);
end.
- Click "Rename" to change name by your scirpt.
This web tutorial will give you an overview of the procedure how easy to use this product!
Or view video tutorial here:
More Related Q&A
- Rename and change properties together
- Change part of many PDF filenames
- Auto-rename PDFs with series numbers
- Append date to PDF filenames
- Rename PDF files with metadata
- Rename PDFs with saving original files
- Custom new filenames using script
- Rename PDF files by extracting content
- Convert images contain scan files to PDF
- Unlock secured PDF
- Secure PDF with passwords or restrictions
- Protect a PDF File with password
- Scan to PDF and mail it subsequently
- Remove restrictions from encrypted PDF
- Convert scan files to Acrobat PDF
- Protect PDF files or remove restrictions
- Convert Image to PDF
- How to Extract JPEG Image File from PDF files
TOP Q&A
Related products
- A-PDF Scan Optimizer - batch optimize your scanned PDF documents
- A-PDF Text Replace - batch replace, change or delete multiples text in Acrobat PDF files automatically
- A-PDF Rename - batch rename multiple PDF document based on content, metadata and file attributes(Size, Datetime) within PDF files. You can batch change or update multiple PDF files metadata (title, creator, producer, author, subject and keywords) as well as
- A-PDF Page Master - Manage and organize PDF document pages, including edit, arrange, merge, extract etc.
We always like improving our products based on your suggestions. Please send your feedback (or ask questions) to us in the contact page.