web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Read data from PDF file in D365 FO

(0) ShareShare
ReportReport
Posted on by 10

Hi All,

We have a requirement to read data from saved PDF file in D365 finance and operations. I could not find direct approach as we normally do using Excel/CSV/Text/XML files.

Has someone worked on any custom Dlls that can be referenced in D365 project ?

Can some one please help me with this on how to read data from PDF in D365. I also need to split PDF files based on the retrieved data from file.

Regards

Ana

I have the same question (0)
  • huijij Profile Picture
    19,811 on at

    Hi sir,

    Please share more information about your scenario,and what does it mean to split a PDF file based on the data retrieved from the file?

  • Martin Dráb Profile Picture
    237,987 Most Valuable Professional on at

    I would look for .NET libraries and then use one from F&O. Therefore you should be interested in threads like Reading PDF documents in .Net. There you'll learn about iTextSharp, for instance.

  • D365 Technical Profile Picture
    10 on at

    Hi Martin,

    Thanks for your reply. Yes I have searched for .Net libraries and found iTextSharp dll  can be used to read data from PDF.

    I have added as reference in D365 project. But i am not able to access methods from the class library.

    Could you please help what would be the issue?

    Regards

    Ana

  • Martin Dráb Profile Picture
    237,987 Most Valuable Professional on at

    Could you give us more information about your problem, please? What and how are you trying to access and what happens?

  • D365 Technical Profile Picture
    10 on at

    Hi Judy

    Need to first read some required data say for example Ref Number from the pdf in D365 FO. The pdf contains many pages based on this required data.

    When I am able to read data then I need to split the pdf based on this ref number data.

    Hope you understand what is the requirement

    Regards

    Ana

  • D365 Technical Profile Picture
    10 on at

    Hi Martin,

    I have downloaded iTextSharp dll and added to bin directory in local VM. Then I added this dll as reference to my D365 project.

    When I try to access methods from this dll, I try to use the below code in my class but not working

    iTextSharp text = new iTextSharp();

    or iTextSharp.text = new iTextSharp.text();

    I also tried using the namespaces

    using iTextSharp.text

    using iTextSharp.text.pdf

    using iTextSharp.text.parser

    I am not sure how to initialize the class and access the methods from it. Can you please help on this?

  • Martin Dráb Profile Picture
    237,987 Most Valuable Professional on at

    What do you mean by "not working"? Do you get a compilation error? If so, on which line and what does the error message say?

  • Martin Dráb Profile Picture
    237,987 Most Valuable Professional on at

    Also, what exactly did you download?

  • D365 Technical Profile Picture
    10 on at

    Hi Martin,

    When I use iTextSharp.text text = new iTextSharp.text(); it gives the compilation error - class iTextSharp.text was not found. Are you missing module reference?

  • D365 Technical Profile Picture
    10 on at

    I have downloaded ITextSharp dll from https://www.dllme.com

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 467 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans