Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom 161 posts 322 karma points
    Nov 19, 2018 @ 14:33
    Tom
    0

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies