OJS version tested: 3.3.0-23
Have the zip of it, need to upload somehow.
An alternative approach to PDF full-text indexing in OJS 3.3, developed for shared hosting environments where pdftotext may be unavailable.
| Approach |
How it works |
| OJS native indexing |
Extracts PDF text using pdftotext |
| Custom plugin |
Uses PHP’s Smalot/PdfParser to extract text, generates a Full-Text Index HTML galley, and lets OJS index its contents |
Advantages
- No external PDF extraction executable required.
- Reuses OJS’s existing search-indexing mechanism.
- Generated HTML galleys can be hidden from the public galley list using CSS:
/* Hide HTML galleys while keeping PDF galley links visible */
.galleys_links li:has(a.obj_galley_link.file) {
display: none !important;
}
The plugin replaces the PDF text-extraction step, not OJS’s search engine.
Hi @gennady,
Thanks for your post. Is this an idea that you have and are actively developing (i.e. you’re working on a plugin?) Or, are you hoping that someone else will develop this?
Similar to your last post, in order to keep with our requested Feature Request format, could you please edit your initial post to match the format
-Roger
PKP Team
Hi Roger,
Not just an idea - have it working. If I have time for this. Thank you!
Hi @gennady,
Thanks for clarifying - do you have a working prototype or Github repository that you can share? Typically, in instances where developers have created a plugin, they post to the community showcase category here in the forum: Contact form plugin and link to their Github repository with a copy of the plugin, so users can install and test.
If it’s something that you already have a prototype for, I’d recommend posting and sharing there (some also ask for testing volunteers to install and provide feedback for plugins)
-Roger
PKP Team