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)
indigophoenix Posted: Friday, August 26, 2016 6:04:25 AM(UTC)
 
Originally Posted by: Paul Rayman Go to Quoted Post
Originally Posted by: indigophoenix Go to Quoted Post

One, would you be willing to modify to the WPF version of the control to make the properties dependency properties?

Yes, we have such plans.
I could enforce their implementation if you're providing a list of properties which has the highest priority for you.


The property that would have the highest priority for me would be the Document property. Other things that would be nice-to-haves would be a HighlightText property and a SelectedText property that would allow for setting the selected text and setting text to highlight in the document.


Originally Posted by: Paul Rayman Go to Quoted Post

Originally Posted by: indigophoenix Go to Quoted Post

Second, the text selection with the mouse seems to only work some of the time.
...
(I can send a sample PDF if that helps with diagnosing the issue.)

Please send this file and issue description to support(at)patagames.com

I'm guessing the second issue is fixed
Please see more details here:
http://forum.patagames.c...-on-Aug-26--2016#post502


Tried the new release and that went a long way to helping with the issue. Thanks! There is still one PDF with which there is a little trouble. I just sent it to the support email with a description of the issue.

Originally Posted by: Paul Rayman Go to Quoted Post

Originally Posted by: indigophoenix Go to Quoted Post

Third, it would be nice to have a function (or a dependency property, or both) that would allow a string to be used to highlight instances of the string in the document.

You can easily implement it yourself by writing the following code
Code:

public void HighlightText(string text)
{
	int cnt = pdfViewer1.Document.Pages.Count;
	for (int i = 0; i < cnt; i++)
	{
		var found = pdfViewer1.Document.Pages[i].Text.Find(text, Patagames.Pdf.Enums.FindFlags.MatchWholeWord, 0);
		if (found == null)
			continue;

		do
		{
			pdfViewer1.HighlightText(i, found.CharIndex, found.CharsCount, Color.Yellow);
		} while (found.FindNext());
	}
}

Thanks, Paul. That code did the trick!
Paul Rayman Posted: Thursday, August 25, 2016 9:42:02 PM(UTC)
 
I'm guessing the second issue is fixed
Please see more details here:
http://forum.patagames.com/posts/m502-Version-3-0-3-2704-was-released-on-Aug-26--2016#post502
Paul Rayman Posted: Wednesday, August 24, 2016 4:57:54 PM(UTC)
 
Originally Posted by: indigophoenix Go to Quoted Post

One, would you be willing to modify to the WPF version of the control to make the properties dependency properties?

Yes, we have such plans.
I could enforce their implementation if you're providing a list of properties which has the highest priority for you.


Originally Posted by: indigophoenix Go to Quoted Post

Second, the text selection with the mouse seems to only work some of the time.
...
(I can send a sample PDF if that helps with diagnosing the issue.)

Please send this file and issue description to support(at)patagames.com


Originally Posted by: indigophoenix Go to Quoted Post

Third, it would be nice to have a function (or a dependency property, or both) that would allow a string to be used to highlight instances of the string in the document.

You can easily implement it yourself by writing the following code
Code:

public void HighlightText(string text)
{
	int cnt = pdfViewer1.Document.Pages.Count;
	for (int i = 0; i < cnt; i++)
	{
		var found = pdfViewer1.Document.Pages[i].Text.Find(text, Patagames.Pdf.Enums.FindFlags.MatchWholeWord, 0);
		if (found == null)
			continue;

		do
		{
			pdfViewer1.HighlightText(i, found.CharIndex, found.CharsCount, Color.Yellow);
		} while (found.FindNext());
	}
}
indigophoenix Posted: Wednesday, August 24, 2016 7:40:06 AM(UTC)
 
I'm currently evaluating the trial version of the SDK and I'm really liking a lot of what you have with the product, but there are also a few things that I'm having some issues with.

One, would you be willing to modify to the WPF version of the control to make the properties dependency properties? It would be nice to be able to do data binding with the properties rather than have to manually set values on the control.

Second, the text selection with the mouse seems to only work some of the time. In a PDF that has more of a magazine layout, text is not being selected in instances where the text is on top of an image or if it is in a separate column on the page. (I can send a sample PDF if that helps with diagnosing the issue.)

Third, it would be nice to have a function (or a dependency property, or both) that would allow a string to be used to highlight instances of the string in the document.

Thanks for your consideration and your nice work on the product.