|
Example usage
sferyx.administration.pdfgenerator.PDFGenerator pdfGenerator=new
sferyx.administration.pdfgenerator.PDFGenerator();
pdfGenerator.generatePDFFromURL("http://your_url_here",
destinationStream, "Letter", "Portrait");
Generates PDF automatically for given URL. It will generate
the file using the given standard page format string such as
"A4", "Letter" etc. and and save the file to the given
OutputStream and page orientation such as "Portrait" or
"Landscape". You can also set the page margins using the
method setMarginsForStandardPageFormat
pdfGenerator.generatePDFFromContent("your HTML content
here", destinationStream, new java.awt.PageFormat());
Generates PDF automatically for given html content. It will
generate the file using the given PageFormat and and save the file to
the given OutputStream.
pdfGenerator.generatePDFFromContent("your HTML content
here", destinationStream, "Letter", "Portrait");
Generates PDF automatically for given html content. It will
generate the file using the given standard page format
string such as "A4", "Letter" etc. and and save the file to
the given OutputStream and page orientation such as
"Portrait" or "Landscape". You can also set the page margins
using the method setMarginsForStandardPageFormat
pdfGenerator.generatePDFFromPlainTextContent("your text
content here", destinationStream, "Letter", "Portrait");
Generates PDF automatically for given plain text content. It
will generate the file using the given standard page format
string such as "A4", "Letter" etc. and and save the file to
the given OutputStream and page orientation such as
"Portrait" or "Landscape". You can also set the page margins
using the method setMarginsForStandardPageFormat
pdfGenerator.generatePDFFromPlainTextContent("your HTML content
here", destinationStream, new java.awt.PageFormat());
Generates PDF automatically for given plain text content. It will
generate the file using the given PageFormat and and save the file to
the given OutputStream.
pdfGenerator.generatePDFFromURL("http://your_url_here",
"c:/pdfgenerator-test1.pdf");
Generates PDF
automatically for given URL source. It will display a
PageFormat dialog and save the file to the given destination
file
pdfGenerator.generatePDFFromURL("http://your_url_here");
Generates PDF
automatically for given URL source. It will display a
PageFormat dialog and file dialog for saving the generated
file
pdfGenerator.generatePDFFromURL("http://your_url_here",
"c:/pdfgenerator-test1.pdf", new java.awt.PageFormat());
Generates PDF
automatically for given URL source. It generate the file
using the given java.awt.PageFormat and save the file to the
given destination file
pdfGenerator.generatePDFFromURL("http://your_url_here",
"c:/pdfgenerator-test1.pdf", "A4", "Portrait");
or
pdfGenerator.generatePDFFromURL("http://your_url_here",
"c:/pdfgenerator-test1.pdf", "Letter", "Landscape");
Generates PDF
automatically for given html content. It will generate the
file using the given standard page format string such
as "A4", "Letter" etc. and and save the file to the given
File and page orientation such as "Portrait" or "Landscape".
You can also set the page margins using the method
setMarginsForStandardPageFormat
pdfGenerator.generatePDFFromPlainTextContent("some text
here", "c:/pdfgenerator-test1.pdf", "Letter", "Landscape");
Generates PDF
automatically for given text content. It will generate the
file using the given standard page format string such as
"A4", "Letter" etc. and and save the file to the given File
and page oriantation such as "Portrait" or "Landscape". You
can also set the page margins using the method
setMarginsForStandardPageFormat
pdfGenerator.generatePDFFromPlainTextContent("some HTML
content here", "c:/pdfgenerator-test1.pdf", "Letter",
"Landscape");
Generates pdf
automatically for given html content. It will generate the
file using the given standard page format string such as
"A4", "Letter" etc. and and save the file to the given File
and page oriantation such as "Portrait" or "Landscape". You
can also set the page margins using the method
setMarginsForStandardPageFormat |