Jump to content

Odd Spaces in PDF Imported Text Boxes


Recommended Posts

I'm not sure if I'm importing incorrectly or if this is a bug. When opening layered PDFs created in GIS software, text boxes contain odd spaces that are not corrected with any text alignment setting. The red circles in the attached images illustrate the spaces in center and left aligned setting. Note the relation of the text to the text box boundary.

Left Aligned.jpg

Center Aligned.jpg

Link to post
Share on other sites
  • Moderators

Thanks for the PDF. This isn't a bug, but is just how Affinity is trying to best align the text so it matches the look of the PDF. Because of this it is applying First Line Indents on the text object which means the first line of a paragraph gets indented. This can be fixed by selecting the Paragraph (or the entire text) and go to the Paragraph Panel and set First Line Indent and Line Indent to 0pt. This will remove the gap and allow you to align the text without a problem.

Link to post
Share on other sites
3 hours ago, Sean P said:

This can be fixed by selecting the Paragraph (or the entire text) and go to the Paragraph Panel and set First Line Indent and Line Indent to 0pt. This will remove the gap and allow you to align the text without a problem.

Or, I think, by choosing the option to favor editable text over fidelity when opening the file in Designer:
image.png.c493ff89f1d9e27b8aba05776c8ab0ef.png

-- Walt

Windows 10 Home, version 20H2 (19042.685),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop (2021-04-06):  32GB memory, Intel Core i7-10750H @ 2.60GHz
, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU
Affinity Photo 1.9.2.1035 and 1.9.4.1048 Beta   / Affinity Designer 1.9.2.1035 and 1.9.4.1048 Beta  / Affinity Publisher 1.9.2.1035 and 1.9.2.1024 Beta

Link to post
Share on other sites
1 hour ago, Sean P said:

I did try that on the import, but wasn't getting any different behaviour.

With the supplied PDF, the option changed whether one of the paragraphs has indents specified (with favor fidelity) or whether it comes in as centered text (favor editability).

-- Walt

Windows 10 Home, version 20H2 (19042.685),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop (2021-04-06):  32GB memory, Intel Core i7-10750H @ 2.60GHz
, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU
Affinity Photo 1.9.2.1035 and 1.9.4.1048 Beta   / Affinity Designer 1.9.2.1035 and 1.9.4.1048 Beta  / Affinity Publisher 1.9.2.1035 and 1.9.2.1024 Beta

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.