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

Notification

Icon
Error

New Topic Post Reply
Options
Go to last post Go to first unread
Guest  
#1 Posted : Thursday, January 28, 2016 5:05:30 PM(UTC)
Quote
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 162

Was thanked: 5 time(s) in 5 post(s)
Hi All,

I wish to load PDF doc in the PDF Viewer but also wish to search the document. There are two different methods I see in the SDK to load a document: PdfViewer.LoadDocument and one in PdfDocument.Load. I'm loading the file into the viewer so it can be viewed but separately loading the text of the document for searching using regular C# (non-SDK) functions. Is there a way to access the text fro the PdfViewer loaded doc instead of loading it twice, once for display and once for access via doc.Pages[pg_ctr].Text.GetText(0, chars)?

Thanks for any help you can provide!

Paul Rayman  
#2 Posted : Thursday, January 28, 2016 6:40:29 PM(UTC)
Quote
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
Hi!

You can get the loaded into PdfViewer document through the Document property

Code:
pdfViewer1.Document.Pages[pg_ctr].Text.GetText(0, chars)
eagleview  
#3 Posted : Friday, January 29, 2016 11:48:37 AM(UTC)
Quote
eagleview

Rank: Member

Groups: Registered
Joined: 1/28/2016(UTC)
Posts: 17
United States

Thanks: 3 times
Great - Thanks for the quick help!

Quick Reply Show Quick Reply
Users browsing this topic
Guest
New Topic Post Reply
Forum Jump  
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.