mirror of
				https://github.com/johnwhitington/cpdf-source.git
				synced 2025-06-05 22:09:39 +02:00 
			
		
		
		
	Better errors on failed squeeze
This commit is contained in:
		
							
								
								
									
										7
									
								
								cpdf.ml
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								cpdf.ml
									
									
									
									
									
								
							| @@ -249,7 +249,12 @@ let squeeze pdf = | |||||||
|     Pdfcodec.flate_level := 9; |     Pdfcodec.flate_level := 9; | ||||||
|     ignore (recompress_pdf pdf) |     ignore (recompress_pdf pdf) | ||||||
|   with |   with | ||||||
|     e -> raise (Pdf.PDFError "Squeeze failed. No output written") |     e -> | ||||||
|  |       raise | ||||||
|  |         (Pdf.PDFError | ||||||
|  |            (Printf.sprintf | ||||||
|  |               "Squeeze failed. No output written.\n Proximate error was:\n %s" | ||||||
|  |               (Printexc.to_string e))) | ||||||
|  |  | ||||||
| type encoding = | type encoding = | ||||||
|   | Raw |   | Raw | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user