[java]代码库
Read this article for more details.Download JARfilejson-rpc-1.0.jar (75 kb)
import org.json.JSONt; ... ... JSONt json = newJSONt();json.put("city", "Mumbai"); json.put("country", "India");...String output = json.toString(); ...
import org.json.JSONt;......JSONt json =newJSONt();json.put("city","Mumbai");json.put("country","India");...String output =json.toString();...10. PDF Generationin Java using iText JARReadthis article for more details.
import java.io.File;importjava.io.FileOutputStream;importjava.io.OutputStream;importjava.util.Date;
importcom.lowagie.text.Document;importcom.lowagie.text.graph;importcom.lowagie.text.pdf.PdfWriter;
public class GeneratePDF
public static void main(String args) try OutputStream file =newFileOutputStream(new File("C:\\Test.pdf"));
catch (Exception e)
e.printStackTrace();