This commit is contained in:
Reece
2025-10-02 19:29:21 +01:00
parent 571f8c0744
commit f7aeca0877
2 changed files with 0 additions and 2 deletions

View File

@@ -404,7 +404,6 @@ export class EnhancedPDFProcessingService {
const scales = { low: 0.2, medium: 0.5, high: 0.8 }; // Reduced low quality for page editor
const scale = scales[quality];
// Render WITHOUT rotation - rotation will be applied via CSS
const viewport = page.getViewport({ scale, rotation: 0 });
const canvas = document.createElement('canvas');
canvas.width = viewport.width;

View File

@@ -164,7 +164,6 @@ export class ThumbnailGenerationService {
for (const pageNumber of batch) {
try {
const page = await pdf.getPage(pageNumber);
// Render without rotation - rotation will be applied via CSS in PageEditor
const viewport = page.getViewport({ scale, rotation: 0 });
const canvas = document.createElement('canvas');