Sferyx LogoSferyx Internet Based Systems
   

Latest News 

::10-March-2010
-New product -  Sferyx JSyndrome PDFGenerator Component Edition released. Fast & easy PDF generation tool -  Powerful features and functionalities

::25-January-2010
Version 9.0 for the Sferyx JSyndrome HTMLEditor Applet & Component Editions released. Many improvements and new features. Demo download Demo & Download

::9-December-2009
- New local dealers available for Germany and Canada  contact  details

::1-December-2009
- Many new examples and new on-line demo versions at the  Demo & Download
 
::23-October-2009 Refresh update for version 8.0 both Applet and Component Editions. Several improvements and minor fixes. Demo downloads Demo & Download.
::16-September-2009 Sferyx proudly sponsors the SAKAI Australian Conference .
::6-September-2009Version 8.0 for the Sferyx JSyndrome HTMLEditor Applet & Component Editions released. Many improvements and new features. Demo downloads Demo & Download.
::5-September-2009Version 8.0 for the Sferyx JSyndrome Equation Editor Applet & Component Editions released. Many improvements and new features. Demo downloads Demo & Download.
::20-February-2009Version 7.5 for the Sferyx JSyndrome HTMLEditor Applet Edition released. Many improvements and new features. Demo downloads Demo & Download.
::19-February-2009Version 7.5 for the Sferyx JSyndrome HTMLEditor Component Edition released. Many improvements and new features. Demo downloads Demo & Download.
::22-December-2008- Available new  commercial office and local dealers worldwide. Please check our contact  details for further information. 
::28-November -2008- Sferyx PDFExport Add-on released. Many improvements and new features. Demo downloads Demo & Download.
::27-November -2008- Version 7.0 for the Sferyx JSyndrome EquationEditor Component Edition released. Many improvements and new features. Demo downloads Demo & Download.
::26-November -2008- Version 7.0 for the Sferyx JSyndrome HTMLEditor Component Edition released. Many improvements and new features. Demo downloads Demo & Download.
::7-July-2008- New Australian commercial office operational with forthcoming opening in the US. Please check our contact  details for further information. 
::9-June-2007- Version 6.5 released. Many improvements and new features. Demo downloads Demo & Download
::9-March-2007- Equation Editor bean Version 6.0 released. Many improvements and new features. Demo downloads Demo & Download
:: 14-February-2007- Version 6.0 released. Many improvements and new features. Demo downloads Demo & Download. List of new features here
:: 10-March-2006- Version 5.5 released. Many improvements and new features. Demo downloads Demo & Download. List of new features here
::15-December-2005- Version 5.0 released. Many improvements and new features. Demo downloads Demo & Download. List of new features here
::: 5-November-2004 - Version 4.5 released. Many improvements and new features. Demo downloads here.   List of new features here
::: 15-May-2004 - Version 4.0 released. Many improvements and new features. Demo downloads here. List of new features here
::: 5-February-2004 - Version 3.5 released. Many improvements and new features. Demo downloads here.
::: 15-October-2003 - Version 3.0 released. Many improvements and new features. Demo downloads here.
::: 04-August-2003 - Version 2.5 released. Many improvements and new features. Enterprise Edition finally shipping.  

::: The Sferyx products have been highlighted on Sun Microsystems - Java Soft's web site in  the latest edition of Swing Sightings: http://java.sun.com/products/jfc/
tsc/sightings/S14.html


HTML EDITOR COMPONENT

User Manual
Oracle Forms
SWT / Eclipse
XML features
FAQ
Download
Screenshots
Licensing & Prices

HTML EDITOR APPLET

User Manual
FAQ
Drupal Integration
SAKAI Integration
IBM Lotus Notes
Download
Screenshots
Licensing & Prices

PDF GENERATOR

User Manual
Oracle Forms
Licensing & Prices

EQUATION/MATHML EDITOR

User Manual
FAQ
Download
Screenshots
Licensing & Prices

PDFEXPORT ADD-ON

User Manual
On-line store
Customers
Contacts

 

Sferyx JSyndrome PDF Generator Component Edition


Advanced Java PDF Generation component
for your Java applications from HTML/XHTML or Plain text sources

Sferyx PDF Generator is a powerful Java based PDF generation component. It allows quick and easy generation of PDF files from HTML or text content from any java application, Oracle Forms, SWT/Eclipse and others. It requires JDK or JRE 1.3 or higher. With only a few lines of code is possible to generate complex PDF files practically from any source and the resulting PDF content can be written in a file, output stream or shown inside the PDF viewer.

  • Pure Java PDF Generation engine - allows fast and easy PDF generation from various sources and even from very complex HTML/XHTML documents with single line of code
  • Automatic multiple page layout, rendering and inclusion of all images, inline and linked styles etc.
  • Possibility to specify the desired Page format and margins and whether to scale the content to fit inside or not
  • Works with any JRE/ JDK 1.3 or higher
  • Support for Oracle Forms and full generation of Rich Text Oracle Reports
  • Fully compatible with Swing, SWT/Eclipse
  • Support for encodings such as English, German, French, Italian, Spanish, Portuguese etc., and also  Cyrillic, Greek and Chinese - more encodings will be added in the next updates
  • Compatible with Headless mode for server systems
  • Compact size and fast document generation
  • Possibility to specify whether to split the pages automatically or to generate a poster-like one page PDF file with automatically determining the page length to fit the content.

Supported Configurations



 java. jsp, servlets

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

Package sferyx.administration.pdfgenerator

Fully featured easy-to-use PDF Generator from HTML and plain text content

Class Summary

CustomPageFormat This class provides a simplified way for assigning standard page formats
PDFGenerator General purpose PDF Generator - this class provides fully featured generation of PDF files from various sources containing HTML or plain text content.
PDFGeneratorOracleBean This class has been optimized to deliver correct generation of Rich Text content for Oracle Reports and provide general PDF generation capabilities for OracleForms.
 

 

Method Summary

 void generatePDFFromContent(java.lang.String content, java.io.OutputStream destinationStream, java.lang.String standardPageFormat, java.lang.String orientation)
          Generates PDF automatically for given html content.
 void generatePDFFromContent(java.lang.String content, java.io.OutputStream destinationStream,  java.awt.print.PageFormat pageFormat)
          Generates PDF automatically for given html content.
 void generatePDFFromContent(java.lang.String content, java.lang.String destinationFile, java.lang.String standardPageFormat, java.lang.String orientation)
          Generates PDF automatically for given html content.
 void generatePDFFromPlainTextContent(java.lang.String content, java.io.OutputStream destinationStream, java.lang.String standardPageFormat, java.lang.String orientation)
          Generates pdf automatically for given text content.
 void generatePDFFromPlainTextContent(java.lang.String content, java.io.OutputStream destinationStream,  java.awt.print.PageFormat pageFormat)
          Generates pdf automatically for given text content.
 void generatePDFFromPlainTextContent(java.lang.String content, java.lang.String destinationFile, java.lang.String standardPageFormat, java.lang.String orientation)
          Generates PDF automatically for given text content.
 void generatePDFFromURL(java.lang.String sourceURL)
          Generates PDF automatically for given URL source.
 void generatePDFFromURL(java.lang.String sourceURL, java.io.File destinationFile, java.awt.print.PageFormat pageFormat)
          Generates PDF automatically for given URL source.
 void generatePDFFromURL(java.lang.String sourceURL, java.io.OutputStream destinationStream, java.awt.print.PageFormat pageFormat)
          Generates pdf automatically for given URL source.
 void generatePDFFromURL(java.lang.String sourceURL, java.lang.String destinationFile)
          Generates PDF automatically for given URL source.
 void generatePDFFromURL(java.lang.String sourceURL, java.lang.String destinationFile, java.awt.print.PageFormat pageFormat)
          Generates PDF automatically for given URL source.
 void generatePDFFromURL(java.lang.String sourceURL, java.lang.String destinationFile, java.lang.String standardPageFormat, java.lang.String orientation)
          Generates PDF automatically for given URL source.
 void setCharset(java.lang.String charset)
          Set character set for proper PDF generation in non western languages
 void setMarginsForStandardPageFormat(int top, int bottom, int left, int right)
          Sets the margins to be used when the page format is set using the standard string like "A4" or "Letter" - this values will not be considered it PageFormat object is used to set the page format
 void setScaleToFitWidth(boolean scale)
          Indicates whether to rescale the page in order to fit the given PageFormat - the default is true

 

| Home | Users Manual | LicenseDemo & Download

Copyright © 2002-2010 Sferyx Srl. All rights reserved. Sferyx and the Sferyx logo are registered trademarks of Sferyx Srl. http://www.sferyx.com