We will be migrating from Ask to Discourse on the first week of August, read the details here

# Draw PDF display problems

Draw is a good tool for quick editing PDF files. However, I am facing serious issues with the PDF rendering implemented in Draw. I have found five types of problems. Problem 1:

Wrong text rendering, lines are not wrapped.

Problem 2:

!

Wrong text rendering, text is not justified. On the left picture is Draw. On the right picture is another viewer.

Problem 3:

Draw cannot render the file

Problem 5:

When opening some files, Draw launches a pop-up window asking for a password. All files are opened after clicking Cancel or OK with an empty password. Any character in the password field is rejected as an invalid password.

Problem 5:

The document displays correctly, however it takes 3-5 minutes to open the document in Draw and the system freezes due to high CPU usage. Scrolling through this document is also resource intensive.

All of the above examples have no problem when opened with Adobe Reader and the following open source viewers like Chrome / Chromium, Firefox, Evince, Okular, GIMP, and ImageMagic. As such, I believe Draw has a legacy PDF rendering engine that cannot handle some of the new PDF features. Am I missing something? (This Draw behaviour is consistent in all latest LO versions on Linux with Gnome and Windows 10.)

edit retag close merge delete

Sort by » oldest newest most voted

The most important reason is: Draw is not a PDF editor.

Draw operates on graphic objects. This means a PDF file is converted when read into a collection of basic objects. Remember also that PDF is a page description language: it positions strings and graphics in a rectangular grid.

Problem 1

Every paragraph line is separate text box anchored to its left, top (or bottom?) coordinate. If the font is not installed on your computer or is not embedded in the file, a substitute is used. The probability that th metrics is the same is very low, resulting in the overlong lines.

Problem 2

Strings are rendered "as is". I don't know how justified text is encoded. But if you look closely at your picture, you'll notice that spaces are not all the same. So, several spaces inserted between words or spaces expanded? Something has been done. Another effect of differing font metrics?

Problem 3

Contents of the file is needed in order to diagnose the issue. An unusual object such as a picture with a fancy encoding?

Problem 4

The PDF has been password protected with an empty password. This may be a mistake of the file creator.

Problem 5

No idea. What is the size of the PDF? Does it contain a huge quantity of elementary objects? Contents of the file is again needed.

To show the community your question has been answered, click the ✓ next to the correct answer, and "upvote" by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

more

Unfortunately, I couldn't answer before. Draw is definitely not a dedicated PDF editor. However, by converting a PDF document to an ODG file and importing it back to PDF, Draw offers a convenient way of basic editing on all PC platforms. But only when ODG correctly represents the document. I tested Draw and all the viewers mentioned above on Linux and Windows 10 and the behavior was identical across platforms. Draw has problems. Other viewers display all PDF documents that I have collected correctly. As for tasks 1, 2, 3, 4. Another viewer should face the same problem, but they work correctly. Concerning problem 5. The file is only 71k, just two pages. I am willing to provide the experts with all my example files. How can I share it?

( 2021-03-12 03:25:03 +0200 )edit

Draw is not at all a PDF editor. It is a graphic shape editor. The fact that it offers a limited editing capability on PDF (without fully interpreting the language) is only a bonus. Providing the files will not change the situation because we are not developers but users. If you want to share them, edit your question, scroll to bottom, press Enter twice and use the "paperclip" tool.

( 2021-03-12 07:52:54 +0200 )edit