Showing posts with label error. Show all posts
Showing posts with label error. Show all posts

Sunday, June 20, 2021

research.gov margin and line space problems

 lines problem can be fixed by setting exact point, or at least 12 points. 

margin problems are often due to auto-formating in special cases, such as ending, bulleting points. 

https://www.galoisrepresentations.com/2019/09/06/nsf-application-tips-latex-edition/

make line at least 12 pt in WORD generally solve this problem. 

It turns out that Adobe File Reduce can change the line space which will lead to warnings in resaerch.gov. Interestingly, WORD-saved pdf can pass the line-space check. Because the WORD file has a size limit of 10M, so I have to use small sized figures (save png as jpg, and then re-upload the figure to WORD). I used Photoshop to convert png to jpg to reduce WORD file size. 


Tuesday, January 12, 2021

try to download PDF from google drive (unsuccessful attemp)

 

import sys

sys.path.append("/opt/anaconda3/lib/python3.7/site-packages")


import requests

from bs4 import BeautifulSoup as soup

from urllib import parse

import os

import re

import pandas as pd


tb = pd.read_excel('Submission of Report _ Lesson plan, online-R-coding bootcamp Dec 2020 (Responses).xlsx')

doc_urls = tb['Please upload your report (for students) or lesson plans (for teachers) in PDF format']

type( doc_urls )
doc_urls[1]
content = requests.get(doc_urls[1] )
with open(("test.pdf"), 'wb') as pdf:
    pdf.write(content.content)
dir(content)

#The generated pdf cannot be open. It is an html file.