How to Mark the check box using java (by taking hard coded value)

Product:1) Wanted to mark the check box 2) want to add text a text box and after that want to create continuation page for that if it is long then how can i do it.

Product Version:

Please give a brief summary of your issue:
(Think of this as an email subject)

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)

Please provide a link to a minimal sample where the issue is reproducible:

package com.aris.pdfTron;

import org.json.JSONObject;

import com.pdftron.pdf.Convert;
import com.pdftron.pdf.OfficeToPDFOptions;
import com.pdftron.pdf.PDFDoc;
import com.pdftron.pdf.PDFNet;
import com.pdftron.sdf.SDFDoc;

public class AddingDataToTemplate {
public static void main(String[] args) {
PDFNet.initialize(“demo:1657276389820:7a445b5803000000006a459a34d7738b5e2075c4c0fb7e3ffc11e242be”);
System.out.println(“Initialized”);

	String inputPath="C:\\Document\\input\\abcd.docx";
	String outputPath="C:\\Document\\output\\xyx.pdf";
	
	try {
		JSONObject jObject= new JSONObject();
		
		jObject.put("patient_id", "062-21880-09011299(2)");
		jObject.put("f_name", "Raushan");
		jObject.put("l_name", "Kumar");
		jObject.put("c_name", "India");
		jObject.put("day", "13");
		jObject.put("month", "07");
		jObject.put("year", "2022");
		jObject.put("age", "26");
		jObject.put("gender", "Male");
		jObject.put("daily_doses", "unknown");
		jObject.put("roa", "unknown");
		jObject.put("indication_for_use", "unknown");
		jObject.put("t_dates", "unknown");
		jObject.put("t_duration", "unknown");
		jObject.put("c_d_d_a", "No concomitants used/reported");
		jObject.put("manufacturer_name", "BMS");
		jObject.put("address", "2222, 3551 Lawrenceville Rd "+"\n"+"Lawrence Township, NJ, 08648, UNITED STATES OF AMERICA");
		jObject.put("rmfd_date", "23/Jan/2022");
		jObject.put("report_date", "15/Jul/2022");
		
		
		JSONObject image1= new JSONObject();
    	image1.put("image_url","./blankCheckbox.jpeg");
    	image1.put("width", 10);
    	image1.put("height", 10);
    	     	
    	JSONObject image2= new JSONObject();
    	image2.put("image_url","./MarkedCheckbox.jpeg");
    	image2.put("width", 10);
    	image2.put("height", 10);
    		
        jObject.put("ck1", image2);
        jObject.put("ck2", image1);
        jObject.put("ck3", image1);
        jObject.put("ck4", image1);
		
		PDFDoc doc=new PDFDoc();
		
		OfficeToPDFOptions options= new OfficeToPDFOptions();
		options.setTemplateParamsJson(jObject.toString());
		
		
		//perform the conversion with the template replacement data
		
		Convert.officeToPdf(doc, inputPath, options);
		doc.save(outputPath,SDFDoc.SaveMode.LINEARIZED,null);
		
		System.out.println("Done");

		
	} catch (Exception e) {
		e.printStackTrace();
	}
	
	
}

}

Hello,

Based on the code you provided, it looks like you are using our templating API to create PDFs.

To get a better understanding of what you are looking to accomplish, could you please provide us with an example file along with a screenshot describing what you would like to accomplish?

Thank you.

can u please share me you mail id.