mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-06-05 22:09:39 +02:00
more
This commit is contained in:
@@ -1,36 +1,16 @@
|
||||
/* CHAPTER 17. Creating New PDFs */
|
||||
// CHAPTER 17. Creating new PDFs
|
||||
|
||||
/** Creates a blank document with pages of the given width (in points),
|
||||
height (in points), and number of pages.
|
||||
@param w width of page
|
||||
@param h height of page
|
||||
@param pages number of pages */
|
||||
public native Pdf blankDocument(double w, double h, int pages)
|
||||
throws CpdfError;
|
||||
/** Creates a blank document with pages of the given width (in points), height
|
||||
(in points), and number of pages. */
|
||||
function blankDocument(w, h, pages)
|
||||
|
||||
/** Makes a blank document given a page size and number of pages.
|
||||
@param papersize paper size, such as {@link #a0portrait a0portrait}
|
||||
@param pages number of pages */
|
||||
public native Pdf blankDocumentPaper(int papersize, int pages)
|
||||
throws CpdfError;
|
||||
/** Makes a blank document given a page size and number of pages. */
|
||||
function blankDocumentPaper(papersize, pages)
|
||||
|
||||
/** Typesets a UTF8 text file ragged right on a page of size w * h in
|
||||
points in the given font and font size.
|
||||
@param w width of page
|
||||
@param h height of page
|
||||
@param font font, such as {@link #timesRoman timesRoman}
|
||||
@param fontsize font size
|
||||
@param filename file name */
|
||||
public Pdf textToPDF(double w, double h, int font, double fontsize,
|
||||
String filename)
|
||||
throws CpdfError;
|
||||
/** Typesets a UTF8 text file ragged right on a page of size w * h in points
|
||||
in the given font and font size. */
|
||||
function textToPDF(w, h, font, fontsize, filename)
|
||||
|
||||
/** Typesets a UTF8 text file ragged right on a page of the given size in
|
||||
the given font and font size.
|
||||
@param papersize paper size, such as {@link #a0portrait a0portrait}
|
||||
@param font font, such as {@link #timesRoman timesRoman}
|
||||
@param fontsize font size
|
||||
@param filename file name */
|
||||
public Pdf textToPDFPaper(int papersize, int font, double fontsize,
|
||||
String filename)
|
||||
throws CpdfError;
|
||||
/** Typesets a UTF8 text file ragged right on a page of the given size in the
|
||||
given font and font size. */
|
||||
function textToPDFPaper(papersize, font, fontsize, filename)
|
||||
|
Reference in New Issue
Block a user