bookboons

All PDF Details And All in one Detail like Improve Your Knowledge

Thursday, January 18, 2024

A Win2PDF Step-by-Step Guide: Reformatting File Names with Microsoft PowerRename

Site logo image Brian posted: " What do you do when you need to convert an electronic document into multiple pages, but with a very specific file name format? Consider this recent customer situation: The customer had a PDF product manual (i.e., 'Widget Manual.pdf') and wanted to co" PDF Blog - Topics from the makers of Win2PDF Read on blog or reader

A Win2PDF Step-by-Step Guide: Reformatting File Names with Microsoft PowerRename

Brian

Jan 18

What do you do when you need to convert an electronic document into multiple pages, but with a very specific file name format? Consider this recent customer situation:

The customer had a PDF product manual (i.e., 'Widget Manual.pdf') and wanted to convert each page of the manual to a JPG image file. And, each JPG file needed to be named in a format that included its corresponding page number and with a uniform file name length (e.g., "Widget_Page001.jpg").

While they were able to convert the PDF file to JPG (using the File ➔ Export ➔ JPEG option in Win2PDF Desktop), they weren't able to control how the resulting file names would be formatted.

Rather than add complexity to the Win2PDF Desktop interface, we suggested using the free Microsoft PowerRename utility.

You can use this same methodology for other situations as well, so we can generalize the procedure. Here's how:

Step 1) Download and install Microsoft PowerToys.

The easiest way is to just search for this app in the Microsoft Store and click Install.

Make sure you have the latest version of PowerToys installed, as older versions may not support regular expressions which will be necessary in our example.

Step 2) Save the multi page PDF file to a series of JPG files

The easiest way to convert the PDF to JPG is to use the Win2PDF Desktop Export feature, as shown here:

When exporting, the base file name defaults to the name of the PDF file, which can be changed if needed.

Upon file Save, multiple JPG files are created.

Win2PDF Desktop creates one JPG file for each page in the PDF and names them with the base name of the PDF file and increments of 1 (with preceding/following '.'characters). So, this is what you get:

Widget Manual.pdf ➔ Widget Manual.1.jpg, Widget Manual.2.jpg, Widget Manual.3.jpg, …

What you need, however, is to have it look like this:

Widget Manual.pdf ➔ Widget_Page001.jpg, Widget_Page002.jpg, Widget_Page003.jpg, …

Step 3) Select the JPG files and open PowerRename

After the files have been converted to JPG, you can select all of them in Windows explorer and right-click to choose PowerRename.

Step 4) Search and replace text using a regular expression

This step shows how regular expressions can be used to augment the file name. In many cases, a simple "search and replace" will be sufficient. But, since the customer in our example wants each JPG file to be a page number in a specific format (3 digits long padded with zeros), we can use the regular expression shown below to accomplish our goal.

Note: the icon for Enumerate items under Text formatting must be selected.

You'll see a preview of the file name conversions on the screen, and when it looks correct you can select Apply. And that's it! If you make a mistake after you've applied the rename, you can go back to Windows explorer and select the "..." option shown below and choose Undo.

This is obviously a very specific example but it shows how it can be done. We highlighted this example using a regular expression because it is such a powerful and expansive tool that most programmers are familiar with.

If you're renaming PDF files, the Win2PDF Pro Auto-rename feature is an easier to use solution that also supports renaming based on the content of the PDF.

If you need assistance with renaming files with specific criteria, let us know. Just as in the case of this customer, we can usually help, even if it requires finding a solution from another source.

Comment
Like
Tip icon image You can also reply to this email to leave a comment.

PDF Blog - Topics from the makers of Win2PDF © 2024. Manage your email settings or unsubscribe.

WordPress.com and Jetpack Logos

Get the Jetpack app

Subscribe, bookmark, and get real-time notifications - all from one app!

Download Jetpack on Google Play Download Jetpack from the App Store
WordPress.com Logo and Wordmark title=

Automattic, Inc. - 60 29th St. #343, San Francisco, CA 94110  

at January 18, 2024
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Hottest Sci-Fi Reads & Dark Fiction Picks—Your Summer Guide

Summer nights and chilling reads go hand in hand. Whether you're craving cosmic horror, mind-bending sci-fi, or a quick flash of fright,...

  • The Book Of Clarence (2024) Film Review
    ...
  • [New post] Fascinating Yet Unimpressive : Murder of the Bhojpuri Dance Queen
    Apurba Ganguly posted: " Title: Murder of the Bhojpuri Dance QueenAuthor: Asimav Roy ChoudhuryBook Type: NovellaGenre: ...
  • New & Noteworthy J-pop of the Week (June 30, 2024)
    In connection with my desire to fully keep up with the J-pop industry, I'm p...

Search This Blog

  • Home

About Me

bookboons
View my complete profile

Report Abuse

Blog Archive

  • August 2025 (1)
  • July 2025 (6)
  • June 2025 (4)
  • May 2025 (4)
  • April 2025 (5)
  • March 2025 (5)
  • February 2025 (4)
  • January 2025 (6)
  • December 2024 (3)
  • November 2024 (4)
  • October 2024 (1)
  • August 2024 (2405)
  • July 2024 (2925)
  • June 2024 (2960)
  • May 2024 (3057)
  • April 2024 (2967)
  • March 2024 (3077)
  • February 2024 (2890)
  • January 2024 (3023)
  • December 2023 (2680)
  • November 2023 (2216)
  • October 2023 (1706)
  • September 2023 (1319)
  • August 2023 (1194)
  • July 2023 (1113)
  • June 2023 (1201)
  • May 2023 (2369)
  • April 2023 (2849)
  • March 2023 (1637)
  • February 2023 (1153)
  • January 2023 (1234)
  • December 2022 (1086)
  • November 2022 (1005)
  • October 2022 (809)
  • September 2022 (649)
  • August 2022 (778)
  • July 2022 (763)
  • June 2022 (759)
  • May 2022 (802)
  • April 2022 (779)
  • March 2022 (593)
  • February 2022 (493)
  • January 2022 (697)
  • December 2021 (1568)
  • November 2021 (3175)
  • October 2021 (3250)
  • September 2021 (3142)
  • August 2021 (3265)
  • July 2021 (3227)
  • June 2021 (2032)
Powered by Blogger.