mirror of
				https://github.com/johnwhitington/cpdf-source.git
				synced 2025-06-05 22:09:39 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			767 B
		
	
	
	
		
			TeX
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			767 B
		
	
	
	
		
			TeX
		
	
	
	
	
	
| # CHAPTER 17. Creating New PDFs
 | |
| 
 | |
| def blankDocument(w, h, pages):
 | |
|     """ Create a blank document
 | |
|     with pages of the given width (in points), height (in points), and number
 | |
|     of pages."""
 | |
| 
 | |
| def blankDocumentPaper(papersize, pages):
 | |
|     """Create a blank document with pages of the given paper size, and number
 | |
|     of pages. """
 | |
| 
 | |
| def textToPDF(w, h, font, fontsize, filename):
 | |
|     """textToPDF(w, h, font, fontsize, filename) typesets a UTF8 text file
 | |
|     ragged right on a page of size w * h in points in the given font and font
 | |
|     size."""
 | |
| 
 | |
| def textToPDFPaper(papersize, font, fontsize, filename):
 | |
|     """textToPDF(papersize font, fontsize, filename) typesets a UTF8 text file
 | |
|     ragged right on a page of the given size in the given font and font
 | |
|     size."""
 |