xPDFSearch 1.41 - Content plugin to search text in PDF files

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

zeeko
Junior Member
Junior Member
Posts: 50
Joined: 2009-02-21, 19:57 UTC

Re: xPDFSearch 1.38 - Content plugin to search text in PDF files

Post by *zeeko »

2consistency
GitHub issues enabled. Feel free to report and contribute.
zeeko
Junior Member
Junior Member
Posts: 50
Joined: 2009-02-21, 19:57 UTC

Re: xPDFSearch 1.38 - Content plugin to search text in PDF files

Post by *zeeko »

2Mr. Ghisler,
There is a beta testing for TC11, would it be possible to implement suggested functions in TC11?
ghisler(Author) wrote: 2022-06-14, 07:33 UTC If you had suggested this a week or two earlier, I would have added a function immediately. But TC 10.50 is now a "release candidate", which means no more new functions until release. Why? The beta test has already lasted more than 9(!) weeks. Each new function make the test take even longer, because each new feature also means new bugs. This sound like a feature which will add a long trail of new bugs, e.g. when the function is called in the wrong moment or a call gets forgotten when the user aborts renaming, etc.

I will put it on my wish list for later, though.

You could either offer two versions of the plugin, one used for custom columns and one used for renaming, or add a small configuration executable where the user can switch between the two modes.
ghisler(Author) wrote: 2022-06-14, 13:15 UTC Using ContentStopGetValue is probably not a good idea, it may crash plugins which don't expect it at that moment. A separate ReleaseCache function would be better.
zeeko
Junior Member
Junior Member
Posts: 50
Joined: 2009-02-21, 19:57 UTC

Re: xPDFSearch 1.40 - Content plugin to search text in PDF files

Post by *zeeko »

Version 1.40
ADDED

New fields: Extensions, Outlined, Embedded Files, Metadata Date, Metadata Date Raw
Options in content plugin ini file:
[xPDFSearch] AttrCopyingAllowed
[xPDFSearch] AttrPrintingAllowed
[xPDFSearch] AttrAddingCommentsAllowed
[xPDFSearch] AttrChangeable
[xPDFSearch] AttrEncrypted
[xPDFSearch] AttrTagged
[xPDFSearch] AttrLinearized
[xPDFSearch] AttrIncremental
[xPDFSearch] AttrSignatureField
[xPDFSearch] AttrOutlined
[xPDFSearch] AttrEmbeddedFiles

CHANGED

Improved support for PDF 2.0 documents
Updated Conformance for PDF/UA and PDF/R, multiple conformances separated by semicolon
Updated Croatian translation

https://github.com/tgotic/xPDFSearch/releases/download/v1.40/wdx_xpdfsearch_1.40.zip
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: xPDFSearch 1.40 - Content plugin to search text in PDF files

Post by *petermad »

.
Updated Danish translation for v. 1.40 can be downloaded at: https://tcmd.madsenworld.dk/xPDFSearch_1.40.zip


.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: xPDFSearch 1.40 - Content plugin to search text in PDF files

Post by *AntonyD »

2zeeko
Spoiler
[Rus]
Title=Заголовок
Subject=Тема
Keywords=Ключевые слова
Author=Автор
Application=Приложение-создатель
PDF Producer=Генератор/конвертор PDF
Document Start=Начало документа
First Row=Первая строка
Extensions=Расширения PDF
Number of Pages=Число страниц
PDF Version=Версия PDF
Page Width=Ширина страницы
Page Height=Высота страницы
Copying Allowed=Разрешено копирование
Printing Allowed=Разрешена печать
Adding Comments Allowed=Разрешено добавление комментариев
Changing Allowed=Разрешено изменение
Encrypted=Зашифрован
Tagged=Отмечен
Linearized=Линеаризован
Incremental=Инкрементирован
Signature Field=С полем цифровой подписи
Outlined=Имеет оглавление/закладки
Embedded Files=Есть внедрённые файлы
Created=Дата создания
Modified=Дата изменения
Metadata Date=Дата из поля XMP metadata
ID=ID документа
PDF Attributes=PDF атрибуты
Conformance=Соответствие PDF стандартам
Created Raw=Дата создания(RAW)
Modified Raw=Дата изменения(RAW)
Metadata Date Raw=Дата из поля XMP metadata(RAW)
Outlines=Оглавления/закладки
Text=Поле полнотекстового поиска
mm|cm|in|pt=мм|см|дюйм|тчкs
In the spoiler you can find updated translation on Russian.
Please use it at the next release)))

Also, pls fix the next problem:
https://ibb.co/1sgDwJX
I've correctly translated underlined 2 strings in INI file - but!
as we see - inside the Total's interface the plugin did not push through these translated strings.
This pic was taken from 'Find Files' TC dialog - Plugins tab.

https://ibb.co/d2115YZ
Here we see the same not-tranlsted strings problem AND plus another one: 2 last fields simply
are not visible at the list of choosing the fields for creating the custom columns/view of TC file panel:
Outlines + Text
BUT probably I do not understand the essence of these fields they self?
Is they purpose to be filled with USER"s! content? In that case of course we can't use them
as the custom columns because they always will be simply empty))))

P.S. I understood! - the 1st problem is at the names of these fields itself. They should be like that:
Created Raw=Дата создания(RAW)
Modified Raw=Дата изменения(RAW)
with space before 'Raw'!

P.P.S. Hmmmm. the fix of the names of these 2 fields resolved this 1st problem ONLY in the second form:
at the list of choosing the fields for creating the custom columns/view of TC file panel.
https://ibb.co/SPPm64s
BUT in 'Find Files' TC dialog - Plugins tab I still see the names: "Created Raw" + "Modified Raw", but
not their properly translated analogs....
Last edited by AntonyD on 2023-10-04, 09:48 UTC, edited 1 time in total.
#146217 personal license
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: xPDFSearch 1.40 - Content plugin to search text in PDF files

Post by *petermad »

I have no problems in the Danish translation with the two strings:

Code: Select all

[dan]
Created Raw=Oprettet Raw
Modified Raw=Ændret Raw
after I added the space before Raw. See: https://tcmd.madsenworld.dk/xPDFSearchtranslate.png

Danish translation here: https://tcmd.madsenworld.dk/xPDFSearch_1.40.zip

Did you restart TC after you made the changes to xPDFSearch.lng ?

It also works when opening the "Choose plugin property" dialog:
  • Via the []=?} Plugin] button in the "Multi-rename Tool".
  • Via the [+] button (User defined) in the "Display" configuration dialog.
  • Via the two buttons [Add..] and [Fields by type] in the "Thumbnail" configuration dialog.
  • Via the [+] button in the "Change attributes" dialog .
  • Via the [+] button in the "Find Files" dialog (General tab).
  • Via the [+] button in the "Overwrite" dialog (Custom fields).
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: xPDFSearch 1.40 - Content plugin to search text in PDF files

Post by *AntonyD »

2zeeko
Also I would like to suggest to you to re-use my versions of your files history.md+readme.md
from next setup archive: https://files.fm/u/f4hc8hmpza
I've made small changes, but there IS the reason to do that! Even simple deleting of some spaces
at some places - lead to more easy and correct look of these files in the special plugins created for
viewing of MD files...

P.S. changes were a little hurry. Must rollback some of them...
changes were applied. URL updated.
Last edited by AntonyD on 2023-10-04, 09:46 UTC, edited 4 times in total.
#146217 personal license
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: xPDFSearch 1.40 - Content plugin to search text in PDF files

Post by *AntonyD »

2petermad
Did you restart TC after you made the changes to xPDFSearch.lng ?
You're right! My mistake...
After restarting - all is fine regarding the translation....
#146217 personal license
zeeko
Junior Member
Junior Member
Posts: 50
Joined: 2009-02-21, 19:57 UTC

Re: xPDFSearch 1.40 - Content plugin to search text in PDF files

Post by *zeeko »

2petermad and 2AnthonyD,
Thank you for your contribution. Files have been updated on github.

I did some tests with different TC language packs and found that TC has problem displaying translated strings from Unicode xPDFSearch.lng.
For Russian language TC displays [=xpdfsearch:???????] and for Danish it displays different letters (a instead of ae, o instead of crossed o) than it should.
Image: https://drive.proton.me/urls/YBE3NQZAC4#Tdc4PyxdAXt2
2Mr. Ghisler, could you please check this?
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: xPDFSearch 1.40 - Content plugin to search text in PDF files

Post by *Dalai »

2zeeko
Language files are supposed to be saved in ANSI, not in Unicode. I asked about it a couple of years ago in this thread: viewtopic.php?t=52739

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: xPDFSearch 1.40 - Content plugin to search text in PDF files

Post by *petermad »

zeeko wrote:I did some tests with different TC language packs and found that TC has problem displaying translated strings from Unicode xPDFSearch.lng.
For Russian language TC displays [=xpdfsearch:???????] and for Danish it displays different letters (a instead of ae, o instead of crossed o) than it should.
Well, here it looks OK with the Unicode xPDFSearch.lng - see: https://tcmd.madsenworld.dk/xPDFSearchtranslate.png Æ, æ and ø are showed correctly (there are no å's in the strings).

I have reuploded https://tcmd.madsenworld.dk/xPDFSearch_1.40.zip with a Danish ANSI version enclosed.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: xPDFSearch 1.40 - Content plugin to search text in PDF files

Post by *AntonyD »

Well, here it also looks OK with RU lang - if I safe xPDFSearch.lng. exactly in the same encoding
page as it was initially opened by AkelPad from setup-archive = it was 1200 UTF-16LE.
#146217 personal license
UGZhyo
Junior Member
Junior Member
Posts: 7
Joined: 2019-02-27, 10:23 UTC

Re: xPDFSearch 1.40 - Content plugin to search text in PDF files

Post by *UGZhyo »

hi, is this the place for help?
hi, my text search in tc was already kind of broken. the search window would close occasionally. i recently updated wdx_xpdfsearch_1.11 with wdx_xpdfsearch_1.40 and updated tc to 11.03 in german. there might be useless files in the inst. folder. i also updated SumatraPDF.exe for slister. i also made a new plugin setting on the search window.

now textsearch within tc does not show any results, regardless of pdf or rtf content.

there also is no xPDFSearch.ini or contplug.ini to find. what to do?

i have made many settings in tc over the years and am scared to make a clean install.
zeeko
Junior Member
Junior Member
Posts: 50
Joined: 2009-02-21, 19:57 UTC

Re: xPDFSearch 1.40 - Content plugin to search text in PDF files

Post by *zeeko »

2UGZhyo
Sorry to hear that text search within pdf files is not working for you.
Some pdf files, mostly scanned ones, don't have text streams, only image. Some draw glyphs (letters) as polygons.
If you open those files with Acrobat or SumatraPDF, can you select text?

In wdx_xpdfsearch_1.40.zip there are 9 files total.
If you don't need help (history.md, readme.md and images folder) you can remove them, but they aren't useless.

You can create xPDFSearch.ini file in plugin directory if you need to change default settings for the plugin. Or create contplug.ini in TC directory.
Please read the readme.md and posts in this thread.

Regarding slister and SumatraPDF, slister has some issues with the latest SumatraPDF. Please check new TCSumatraPDF plugin thread.
xPDFSearch doesn't support RTF content, but TC itself does.
zeeko
Junior Member
Junior Member
Posts: 50
Joined: 2009-02-21, 19:57 UTC

Re: xPDFSearch 1.41 - Content plugin to search text in PDF files

Post by *zeeko »

Version 1.41

CHANGED
Xpdf updated to version 4.05
minor code and documentation changes

https://github.com/tgotic/xPDFSearch/releases/download/v1.41/wdx_xpdfsearch_1.41.zip
Post Reply