Marthee commited on
Commit
5b83254
·
verified ·
1 Parent(s): 280b957

Update Code_2_7.py

Browse files
Files changed (1) hide show
  1. Code_2_7.py +3 -1
Code_2_7.py CHANGED
@@ -1875,6 +1875,7 @@ def mainFunctionDrawImgPdf(datadoc,dxfpath, dxfratio,SearchArray,Thickness,pdfpa
1875
  print('mediabox', width , height)
1876
 
1877
 
 
1878
  correction_factor= detect_scale_from_page(dxfpath,width,dxfratio/1000)
1879
 
1880
  factor=1
@@ -1887,6 +1888,7 @@ def mainFunctionDrawImgPdf(datadoc,dxfpath, dxfratio,SearchArray,Thickness,pdfpa
1887
  print('Ratio was adjusted to be ur input ratio x2')
1888
 
1889
  dxfratio=dxfratio*factor
 
1890
 
1891
  if page2.rotation!=0:
1892
 
@@ -2375,4 +2377,4 @@ def mainFunctionDrawImgPdf(datadoc,dxfpath, dxfratio,SearchArray,Thickness,pdfpa
2375
  print('LISTTT',list1)
2376
  return doc2,latestimg, SimilarAreaDictionary ,spreadsheetId, spreadsheet_url , namepathArr , list1,hatched_areas, bax_xml, column_xml
2377
 
2378
-
 
1875
  print('mediabox', width , height)
1876
 
1877
 
1878
+ print('olddxfratio',dxfratio)
1879
  correction_factor= detect_scale_from_page(dxfpath,width,dxfratio/1000)
1880
 
1881
  factor=1
 
1888
  print('Ratio was adjusted to be ur input ratio x2')
1889
 
1890
  dxfratio=dxfratio*factor
1891
+ print('new dxfratio', dxfratio)
1892
 
1893
  if page2.rotation!=0:
1894
 
 
2377
  print('LISTTT',list1)
2378
  return doc2,latestimg, SimilarAreaDictionary ,spreadsheetId, spreadsheet_url , namepathArr , list1,hatched_areas, bax_xml, column_xml
2379
 
2380
+