I'm new to this forum and iTextSharp. I am using C# and asp.net for my web stuff. I have an app that uses several already made Word Doc forms. These are not real technical forms. I have my routins to replace certain variables in the doc with info from a database. What I need to know is can I use iTextSharp to just convert the Word Doc to a PDF, Save it in a predefined location and then open that file. I can do all this with the word doc now, but PDF format would be nice also. User interaction is not needed with what I do now. I hope I have made myself clear.
-
-
Programatic with java:
import officetools.OfficeFile; // available at dancrintea.ro/doc-to-pdf/
...
FileInputStream fis = new FileInputStream(new File("test.doc")); // works with xls also
FileOutputStream fos = new FileOutputStream(new File("test.pdf"));
OfficeFile f = new OfficeFile(fis,"localhost","8100", true);
f.convert(fos,"pdf");
All possible conversions:
doc --> pdf, html, txt, rtf
xls --> pdf, html, csv
ppt --> pdf, swf
html --> pdf -
zetty said:Programatic with java:
import officetools.OfficeFile; // available at dancrintea.ro/doc-to-pdf/
...
FileInputStream fis = new FileInputStream(new File("test.doc")); // works with xls also
FileOutputStream fos = new FileOutputStream(new File("test.pdf"));
OfficeFile f = new OfficeFile(fis,"localhost","8100", true);
f.convert(fos,"pdf");
All possible conversions:
doc --> pdf, html, txt, rtf
xls --> pdf, html, csv
ppt --> pdf, swf
html --> pdfhi guy's
i am new to use iTextSharp ,here my requirement is converting .doc,.xls and images to pdf in ".net"
any one plz help me
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.