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!
|
|
|
|
|
|
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)
|
|
|
|
|
|
Rank: Member
Groups: Registered
Joined: 1/28/2016(UTC) Posts: 17  Thanks: 3 times
|
Great - Thanks for the quick help!
|
|
|
|
|
|
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.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close