how can I remove the first white space while batch renaming PDF files?
Question
I have renamed my PDFs but I need to do some clean up and take out white spaces, how can do this? For example: 1234 567 POSTING NOTICE.PDF, how can I remove the whitespace to look like this: 1234567 POSTING NOTICE.PDF?
Solution
While using A-PDF Rename to rename PDF files, you can use below script to remove first blank space while renaming:
Var
p :Integer;
tmpname:string;
Begin
p:=pos(' ',Filename);
newFilename :=leftstr(Filename,p-1)+rightstr(filename,length(filename)-p);
End.
Click here to download the trial version of the program to have a try now!
Related products
- 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 Preview and Rename - Preview PDF content easily, rename PDF based on content you previewed.
- A-PDF Preview and Move - Preview content for multiple PDF files, then OCR page content to rename and define dest folder to move.
We always like improving our products based on your suggestions. Please send your feedback (or ask questions) to us in the contact page.