File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -272,6 +272,7 @@ type ConversionOptions = {
272272  skipNetworkIdleEvent? :  boolean ; //  Do not wait for Chromium network to be idle (default false)
273273  metadata? :  Metadata ; //  Metadata to be written.
274274  cookies? :  Cookie []; //  Cookies to be written.
275+   downloadFrom? :  DownloadFrom ; // Download a file from a URL. It must return a Content-Disposition header with a filename parameter.
275276};
276277``` 
277278
@@ -306,6 +307,7 @@ type ScreenshotOptions = {
306307  skipNetworkIdleEvent? :  boolean ; //  Do not wait for Chromium network to be idle (default false)
307308  optimizeForSpeed? :  boolean ; //  Define whether to optimize image encoding for speed, not for resulting size.
308309  cookies? :  Cookie []; //  Cookies to be written.
310+   downloadFrom? :  DownloadFrom ; //  Download the file from a specific URL. It must return a Content-Disposition header with a filename parameter.
309311};
310312``` 
311313
@@ -328,7 +330,7 @@ const buffer = await LibreOffice.convert({
328330
329331Similarly to Chromium's route ` convert `  method, this method takes the following optional parameters :
330332
331- -  ` properties ` : changes how the PDF generated file will look like.
333+ -  ` properties ` : changes how the PDF generated file will look like. It also includes a  ` password `  parameter to open the source file. 
332334-  ` pdfa ` : PDF format of the conversion resulting file (i.e. ` PDF/A-1a ` , ` PDF/A-2b ` , ` PDF/A-3b ` ).
333335-  ` pdfUA ` : enables PDF for Universal Access for optimal accessibility.
334336-  ` merge ` : merges all the resulting files from the conversion into an individual PDF file.
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments