How can I edit PDF text without screwing up alignment?

Question:How can I edit PDF text without screwing up alignment?I am trying to edit text in a PDF document of a chart but it continually throws the alignment of the text on the chart out of whack, moving things into the wrong fields or just in general out of position. Even when I am replacing existing text with the same amount of characters (say, changing 21.30 to 20.30) it throws everything off. How can I avoid this or fix it when it happens?

Answer: According to your needs, maybe you can have a free trial of software VeryPDF PDF Text Replacer. By this software, you can edit PDF text casually without screwing up alignment. And there are two version of this software: command line version and GUI version. In the following part, I will take the command line version for example to show you  how to edit PDF text.

Step 1. Download PDF Text Replacer Command Line

  • As this is command line version software, when downloading finishes, there will be an zip file. Please extract it to some folder then you can check the readme.txt and call the executable file in MS Dos Windows.
  • And this software is Windows application, it can not work under Mac and Linux system for now.

Step 2. Edit PDF by command line

  • Here is the usage and some examples for your reference.
  • Usage:        pdftr.exe [options] <Input-file> <Output-file>
  • When you edit PDF text, please refer to the following command line templates.
    pdftr.exe -contentreplace "My Name=>Your Name" D:\in.pdf D:\out.pdf
    When you edit PDF which is text based, you can use the above command line to replace text directly.
    pdftr.exe -searchandoverlaytext "My Name=>Your Name" D:\in.pdf D:\out.pdf
    When you need to search and overlay text to PDF pages, please refer to the above command line.
    pdftr.exe -searchandoverlaytext "My Name=><IMAGE>D:\temp\myname.png*20*20" D:\in.pdf D:\out.pdf
    This command line can help you edit PDF text by image and specify image width and height.
    pdftr.exe -pagerange 1-3 -contentreplace "Old Text=>New Text||VeryPDF=>VeryDOC||My Name=>Your Name" D:\in.pdf D:\out.pdf
    When you need to edit PDF in specified page range, please refer to the above command line. Now let us check the related parameters:
  • -contentreplace <string>      : replace text in page content objects directly
    -searchandoverlaytext <string>: search and overlay text to PDF pages
      -overlaytextfontname <string> : set overlay text fontname, default is 'Arial'
      -overlaytextfontsize <string> : set overlay text font size, default is 0 for auto
      -overlaytextcolor <string>    : set overlay text color, in Hex, default is 000000
    -oldtext <string>             : specify text to replace
    -newtext <string>             : specify text to replace with

Now let us check the editing PDF effect from the following snapshot.  During the using, if you have any question, please contact us as soon as possible.

eidt PDF effect

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 OCR Products 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!