Extract graph

Hi
I have a query. Can we extract graph from a pdf file. Iam unable to extract as its not in jpeg nor png format. Iam using community edition. Can i extract graph if I use Enterprise edition??

Hi
‘Extract Images From PDF’ activity does not work in your case?

No. I have used that activity. The graph is like a hospital pulse kinda graph

If this graph is always on the same position in file?
It is possible to convert pdf to png and it’s possible to cut specific rectangle from png file.

can you please explain how can we do it

I have it in custom activity package, but it can be done in invoke code activity.
This is C# code for generating png from pdf file:

            Document doc = new Document();
            PdfWriter.GetInstance(doc, new FileStream(pdf_path, FileMode.Create));
            doc.Open();
            Image png = Image.GetInstance(png_path);
            png.SetAbsolutePosition(0, 0);
            doc.Add(png);
            doc.Close();

I imported iTextSharp nuget for that

1 Like

Hi @Jyothi_SUVERA ,

Can you share a sample file ?

Regards
Balamurugan.s