Update Code_2_7.py
Browse files- Code_2_7.py +3 -3
Code_2_7.py
CHANGED
|
@@ -2281,10 +2281,10 @@ def mainFunctionDrawImgPdf(datadoc,dxfpath, dxfratio,SearchArray,Thickness,pdfpa
|
|
| 2281 |
|
| 2282 |
|
| 2283 |
if pdf_content:
|
| 2284 |
-
latestimg,pix=pdftoimg(
|
| 2285 |
else:
|
| 2286 |
-
latestimg,pix=pdftoimg(
|
| 2287 |
-
doc2 =fitz.open('pdf',
|
| 2288 |
if pdf_content:
|
| 2289 |
gc,spreadsheet_service,spreadsheetId, spreadsheet_url , namepathArr=google_sheet_Legend.legendGoogleSheets(grouped_df , pdfname,pdfpath,pdf_content)
|
| 2290 |
else:
|
|
|
|
| 2281 |
|
| 2282 |
|
| 2283 |
if pdf_content:
|
| 2284 |
+
latestimg,pix=pdftoimg(OutputPdfStage2,pdf_content)
|
| 2285 |
else:
|
| 2286 |
+
latestimg,pix=pdftoimg(OutputPdfStage2)
|
| 2287 |
+
doc2 =fitz.open('pdf',OutputPdfStage2)
|
| 2288 |
if pdf_content:
|
| 2289 |
gc,spreadsheet_service,spreadsheetId, spreadsheet_url , namepathArr=google_sheet_Legend.legendGoogleSheets(grouped_df , pdfname,pdfpath,pdf_content)
|
| 2290 |
else:
|