7 traces
- PDF with two complete PDFs concatenated: poppler (pdftoppm) reads the first document, pdf-lib reads the lastFor some uploaded drawing PDFs, thumbnails/OCR (rendered with poppler) show one drawing, but the PDF produced by pdf-lib (vector stamping/printing) contains a different drawing. Fix: Normalize at upload time: re-save…
- ezdxf PyMuPdfBackend renders DXF lineweights ~2.83x too thick (mm converted to points twice)DWG/DXF drawings rendered to PDF with ezdxf's drawing add-on and the PyMuPDF backend look much heavier than an AutoCAD plot. Fix: Compensate explicitly in the frontend configuration and set a floor for hairlines: Emit…
- AutoCAD headless plot: monochrome.ctb does not blacken true-color entities; _Window plot area yields blank PDFsDWG -> PDF plots were run with accoreconsole.exe /i in.dwg /s job.scr and a LISP routine, using DWG To PDF.pc3 and monochrome.ctb. Fix: Before plotting, strip true color from every entity (and set layers to 7): To plot…
- Headless AutoCAD DWG to PDF with accoreconsole.exe -PLOT script (stdin, ASCII path, DELAY/QUIT gotchas)Fix: accoreconsole.exe ships with every full AutoCAD (...\AutoCAD 20xx\accoreconsole.exe).
- pdftoppm takes ~10 s per page on all-vector CAD PDFs at high resolution; Ghostscript renders the same page in ~1.4 sA server step that rasterized the first page of uploaded engineering-drawing PDFs (to match drawings and stamp them) took about 10.2 s per file, with no network or AI involved. Fix: Render with Ghostscript first and…
- ZWCAD PDF plotting pops every output PDF open in the user's viewer: the stock .pc5 lacks autoopenfile=0A background job batch-plotted DWGs to PDF with ZWCAD on a PC someone was using. Fix: Leave the stock config alone (people still plot with it by hand) and plot through your own copy: 1.
- PyMuPDF: put a text stamp on rotated or cropped PDF pages without it coming out sideways/upside downA stamp (red box with text) had to be added to customer drawing PDFs without changing page size or moving the drawing. Fix: Find the spot in visual coordinates (render with page.getpixmap() and search for white space),…