PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jun 30, 2024 2:07 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Jun 08, 2015 8:15 pm 
Offline

Joined: Mon Jun 08, 2015 3:49 pm
Posts: 1
Hi,
I've been using PDFsharp 1.32 WPF for some time with great results.
My current issue is really a cosmetic one, but important to my users.
I've successfully created a text-under-image pdf but when the user selects the text (Ctrl-A) it appears that not all the text has been ocr'd.
In the attached file you can see that the highlighted text is shorted than the barcode that was found.

If I add spaces to the end of the string, the DrawString function appears to trim the blanks (front and back by the way)

I've already recompiled the library for other issues and if that's what I have to do for this I'm ok with that as well.

Thanks in advance,

Peter


Attachments:
File comment: Sample Text Under Image
TextUnderImage.PNG
TextUnderImage.PNG [ 12.72 KiB | Viewed 4031 times ]
Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 09, 2015 9:33 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3100
Location: Cologne, Germany
Hi!

Not really my area of expertise, but AFAIK PDF files do not draw spaces. Writing "Hello, World!" will actually draw "Hello," at one spot and "World!" at another spot (or even smaller fragments).

Some untested ideas: Maybe you can add non-breaking spaces or underscores - or increase the font size.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 42 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group