logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Post a reply
From:
Message:

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
gffranca Posted: Monday, June 1, 2020 5:33:09 AM(UTC)
 
I received a file from a client (which is confidential) that the order of the text when using page.Text.GetText() was wrong.

It was happening in a specific part of the file that the text was upside down. I was able to recreate the same mistake in a different file.

Curvas.pdf (483kb) downloaded 42 time(s).

"Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel"

I used the tool "Text on path" from Illustrator to create this "curved text box". I believe it was the same tool my client used on his file. When I try to get the respective text in Pdfium.Net SDK, i get this:

"oL mer
pi
mus
od ol r s ti
ma
et, consec t etuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore
m ga
an
l a qi u
ma
e ar t ov ul pt U.t a wt neisi mda mi nev mi ni uq, mai exe durts onsi r c i tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel"


Part of the text is correct. But the rest is mixed. I need a way to extract correctly a "curved text".

Thanks in advance!