Examine PDF File - Which filed contains the PDF contents
I am on Umbraco 7.11.1.
I have set up PDF indexer in my ExamineIndex.config as follows:
I have created my event handler like this
private void HandlePDFGatheringNodeData(object sender, IndexingNodeDataEventArgs e)
{
var fields = e.Fields;
foreach (var keyPair in fields)
{
switch (keyPair.Key)
{
default:
var cleanedTitle = umbraco.library.StripHtml(keyPair.Value.ToString()).Trim();
sbPDFFields.AppendLine(cleanedTitle);
continue;
}
}
if (sbPDFFields.ToString() != "")
e.Fields.Add("fhlb-PDF", sbPDFFields.ToString());
}
The results for the first PDF comes back like this
id 4222
nodeName AHPNPR2018-04745.pdf
updateDate 2018-04-17T16:10:37
writerName byczkowskijj
path "-1,1124,4221,4223"
nodeTypeAlias File
parentID 4221
Can anyone tell me which field contains the contents inside the PDF?
Examine PDF File - Which filed contains the PDF contents
I am on Umbraco 7.11.1. I have set up PDF indexer in my ExamineIndex.config as follows:
I have created my event handler like this private void HandlePDFGatheringNodeData(object sender, IndexingNodeDataEventArgs e) { var fields = e.Fields; foreach (var keyPair in fields) { switch (keyPair.Key) { default: var cleanedTitle = umbraco.library.StripHtml(keyPair.Value.ToString()).Trim(); sbPDFFields.AppendLine(cleanedTitle); continue; } } if (sbPDFFields.ToString() != "") e.Fields.Add("fhlb-PDF", sbPDFFields.ToString());
The results for the first PDF comes back like this id 4222 nodeName AHPNPR2018-04745.pdf updateDate 2018-04-17T16:10:37 writerName byczkowskijj path "-1,1124,4221,4223" nodeTypeAlias File parentID 4221
Can anyone tell me which field contains the contents inside the PDF?
Thanks
Tom
is working on a reply...