How to get text color in pdf?

suggest me any possible ways !

Hey Jagadeesh,

Yse you can, Font information by Get full text activity

there is one another way to find pdf font information, first change that pdf to word By Balarewa.PDF.Activities or any other activity if exists

then you can create a python function to recognize text font information’s

the code is:
import docx
path = ‘/home/karamveer/Downloads/222.docx’ #your docx file path
doc = docx.Document(path)
for p in doc.paragraphs:
name = p.style.font.name
size = p.style.font.size
print name, size

hope this will help you

Regards
Aditya

1 Like

hi aditya.prakash,
could you tell how to get the pdf to word converting activity…!
and one more thing is can i write code in vb.net which you mentioned in python???

Hi,

open package manager
search pdf, you will get BalaReva.PDF.Activities

image

for your another question, as i’m versed in Python/java so I preferred them, my hands is weak in .Net so, you can google it “How to get word Font Information vb.net
you will definitely get any library for the same:wink:

Happy Automation

Regards
Aditya

2 Likes

aditya,
i could able to find this " BalaReva.PDF.Activities" ! could you please send me that BalaReva.PDF.Activities file which will be at your “C:\Program Files (x86)\UiPath\Studio\Packages”