mirror of
				https://github.com/Frooodle/Stirling-PDF.git
				synced 2025-11-01 01:21:18 +01:00 
			
		
		
		
	fix the crop problem
This commit is contained in:
		
							parent
							
								
									aa42806a9e
								
							
						
					
					
						commit
						963c1f4874
					
				@ -75,6 +75,16 @@
 | 
			
		||||
              }
 | 
			
		||||
            });
 | 
			
		||||
 | 
			
		||||
            cropForm.addEventListener('submit', function(e) {
 | 
			
		||||
              if (xInput.value == "" && yInput.value == "" && widthInput.value == "" && heightInput.value == "") {
 | 
			
		||||
                // Ορίστε συντεταγμένες για ολόκληρη την επιφάνεια του PDF
 | 
			
		||||
                xInput.value = 0;
 | 
			
		||||
                yInput.value = 0;
 | 
			
		||||
                widthInput.value = pdfCanvas.width;
 | 
			
		||||
                heightInput.value = pdfCanvas.height;
 | 
			
		||||
              }
 | 
			
		||||
            });
 | 
			
		||||
 | 
			
		||||
            overlayCanvas.addEventListener('mousedown', function(e) {
 | 
			
		||||
              // Clear previously drawn rectangle on the main canvas
 | 
			
		||||
              context.clearRect(0, 0, pdfCanvas.width, pdfCanvas.height);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user