unable to print one pdf fonts text to another pdf? -
i have pdf in telufu pdf (replace anils.com 123.176.47.55) want extract text pdf (like in pdf page no 3 firtst block data need read) download fonts page using mupdf-1.3-windows
it downloads fonts pdf uses when write text using fonts pdf of texts not redered code
//output file name public static string pdf1 = "c:\\documents , settings\\administrator\\desktop\\itextpdf\\anil.pdf"; public static void main(string[] args) throws ioexception, documentexception { try { pdfreader reader = new pdfreader(new url("http://anils/draftrolls/pdfgeneration.aspx?urlpath=d%3a\\ssr_2013_final+rolls\\ac_238\\telugu\\s01a238p038.pdf"),null); system.out.println("this pdf has "+reader.getnumberofpages()+" pages."); // reading page no 3 string page = pdftextextractor.gettextfrompage(reader, 3); // fonts had checked total of 7 fonts didn't fonts basefont f = basefont.createfont("c:\\documents , settings\\administrator\\desktop\\itextpdf\\fonts\\aaaaad+gautami-0174.ttf", "", basefont.embedded); font telugu = new font(f, 18.0f, font.bold); paragraph description = new paragraph(page,telugu); // description.setalignment(paragraph.align_center); document document = new document(); // step 2 pdfwriter.getinstance(document, new fileoutputstream(pdf1)); // step 3 document.open(); document.add(description); document.close(); } catch(exception e) { system.out.println(e); } }
some of text never matched font how solve this?
i think hard natively.
you should convert format, preferably text-based.
i need extract vectorial schemas, , use svg purpose.
Comments
Post a Comment