Thursday, 20 August 2020
Get States of fields of pdf using Itext
PdfReader pdfReader = new PdfReader(bytes);
AcroFields acroFields = pdfReader.getAcroFields();
Map<String, AcroFields.Item> map = acroFields.getFields();
List<String> keyList = new ArrayList<>();
map.forEach((k, v) -> {
try {
String[] arr = acroFields.getAppearanceStates(k);
System.out.println(k+":"+Arrays.toString(arr));
keyList.add(k);
} catch (Exception e) {
e.printStackTrace();
} });
Subscribe to:
Posts (Atom)
links for Data Structure
1) 𝐁𝐞𝐜𝐨𝐦𝐞 𝐌𝐚𝐬𝐭𝐞𝐫 𝐢𝐧 𝐋𝐢𝐧𝐤𝐞𝐝 𝐋𝐢𝐬𝐭: https://lnkd.in/gXQux4zj 2) 𝐀𝐥𝐥 𝐭𝐲𝐩𝐞𝐬 𝐨𝐟 𝐓𝐫𝐞𝐞 𝐓𝐫𝐚𝐯𝐞𝐫𝐬𝐚𝐥𝐬...
-
Sample Code: Running code for add text water mark on PDF in java using iText , the water mark drawing on center horizontally. import ...
-
import org.springframework.data.repository.NoRepositoryBean; import org.springframework.data.repository.Repository; import java...
-
Step1: reach to project directory where pom.xml file exist from terminal Step2: clean mavan using below mvn clean Step3: create a war f...