Search text in PDF

119 views
Skip to first unread message

Илья Тимонин

unread,
Jan 17, 2016, 6:07:41 AM1/17/16
to tiddl...@googlegroups.com
Hello, everybody!

I have created tiddler with PDF (Type: application/pdf). I need this pdf to be searchable through its text. Is it possible? Or maybe I need some other method to get this pdf embedded in my wiki for that purpose?

Update: I have another question: how to get automatically each new tiddler being tagged with a default tag?

Tobias Beer

unread,
Jan 17, 2016, 8:18:36 AM1/17/16
to tiddl...@googlegroups.com
The only way I can think of for you to see IF a pdf has some content rather than WHERE is to put the entire pdf contents (or just relevant excerpts) into the tiddler, e.g a html comment.

Other than that it's up for your browsers pdf ui to provide in-pdf searching.

Hegart Dmishiv

unread,
Jan 17, 2016, 4:26:42 PM1/17/16
to TiddlyWiki
Hi Ilya, here is the code I'm using to display pdf files from within a tiddler. The tiddler only needs to be of text/vnd.tiddlywiki type for this to work. As Tobias says though, it relies on your web browser having the ability to render pdf files, so you might also need a plugin for your browser for this to work properly.

<object data="/path/to/filename.pdf" type="application/pdf" width="100%" height="540px"></object>

I hope this helps. Once again, I can't recall who suggested this to me, but big ups to them. ;-)

Hegart.


Илья Тимонин

unread,
Jan 18, 2016, 1:39:43 AM1/18/16
to TiddlyWiki
Thanks Hegart. I've embedded my pdf via this method, and it is visible. But search through its text doesn't work. I mean that search that is in sidebar of Tiddlywiki.

понедельник, 18 января 2016 г., 0:26:42 UTC+3 пользователь Hegart Dmishiv написал:

Hegart Dmishiv

unread,
Jan 18, 2016, 1:50:20 AM1/18/16
to TiddlyWiki
Hi Ilya, yeah, that won't work, unfortunately. For a very good explanation of why it won't, have a look at this previous post by Tobias Beer, and some of the subsequent discussion in that thread.

Hegart.
Reply all
Reply to author
Forward
0 new messages