mirror of
				https://github.com/Frooodle/Stirling-PDF.git
				synced 2025-10-25 11:17:28 +02:00 
			
		
		
		
	Merge pull request #96 from Sf298/main
Fixed rotate all button not working
This commit is contained in:
		
						commit
						71636c3413
					
				| @ -263,6 +263,7 @@ | ||||
|         function rotateAll(deg) { | ||||
|             for (var i=0; i<pagesContainer.childNodes.length; i++) { | ||||
|                 const img = pagesContainer.childNodes[i].querySelector("img"); | ||||
|                 if (!img) continue; | ||||
|                 rotateElement(img, deg) | ||||
|             } | ||||
|         } | ||||
| @ -271,6 +272,7 @@ | ||||
|             const pdfDoc = await PDFLib.PDFDocument.create(); | ||||
|             for (var i=0; i<pagesContainer.childNodes.length; i++) { | ||||
|                 const img = pagesContainer.childNodes[i].querySelector("img"); | ||||
|                 if (!img) continue; | ||||
|                 const pages = await pdfDoc.copyPages(img.doc, [img.pageIdx]) | ||||
|                 const page = pages[0]; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user