Do the following changes 1. Convert landscape mode into portrait mode 2. Change the background into white 3. All Headings and texts into same formate and size and use white poster image as reference
~/
~/attachments/bd237390-9990-444b-9949-67eaac7183ae
medical scientific poster portrait white background typography layout guidelines
python -c "from pypdf import PdfReader; p='/tmp/workspace/attachments/bd237390-9990-444b-9949-67eaac7183ae/Khushi poster 2.pdf'; r=PdfReader(p); print('pages',len(r.pages)); [print('PAGE',i+1,'size',float(x.mediabox.width),float(x.mediabox.height),'text:',(x.extract_text() or '')[:12000]) for i,x in enumerate(r.pages)]"
~/
~/attachments/bd237390-9990-444b-9949-67eaac7183ae
mkdir -p "/tmp/workspace/poster-revision/src" "/tmp/workspace/poster-revision/assets" "/tmp/workspace/poster-revision/output" && python -c "from PIL import Image; import fitz, os; ref='/tmp/workspace/attachments/bd237390-9990-444b-9949-67eaac7183ae/4f722fa3-c1e1-463f-b7ec-08e9bf265cc1.jpeg'; im=Image.open(ref); print('REFERENCE',im.size,im.mode); im.thumbnail((1200,1200)); im.save('/tmp/workspace/poster-revision/assets/reference_preview.jpg',quality=90); doc=fitz.open('/tmp/workspace/attachments/bd237390-9990-444b-9949-67eaac7183ae/Khushi poster 2.pdf'); p=doc[0]; pix=p.get_pixmap(matrix=fitz.Matrix(0.7,0.7),alpha=False); pix.save('/tmp/workspace/poster-revision/assets/source_preview.png'); print('source images',len(p.get_images(full=True))); [print(x) for x in p.get_images(full=True)]"
Which aspect should I prioritize in the next revision pass?
All
~/poster-revision
python -c "from PIL import Image; p='/tmp/workspace/attachments/bd237390-9990-444b-9949-67eaac7183ae/4f722fa3-c1e1-463f-b7ec-08e9bf265cc1.jpeg'; im=Image.open(p); print(im.format, im.size, im.mode); print(im.getbbox())"
/tmp/workspace
~/attachments
Khushi poster 2.pdf4f722fa3-c1e1-463f-b7ec-08e9bf265cc1.jpegDo the following changes 1. Convert landscape mode into portrait mode 2. Change the background into white 3. All Headings and texts into same formate and size and use white poster image as reference
~/
scientific poster typography title section headings body text white background layout guidance
~/
~/attachments/bd237390-9990-444b-9949-67eaac7183ae
python - <<'PY' from pypdf import PdfReader p='/tmp/workspace/attachments/bd237390-9990-444b-9949-67eaac7183ae/Khushi poster 2.pdf' r=PdfReader(p) print('PAGES',len(r.pages)) for i,page in enumerate(r.pages): print('PAGE', i+1, 'SIZE', float(page.mediabox.width),float(page.mediabox.height)) print('IMAGES',len(list(page.images))) for j,img in enumerate(page.images): print(j,img.name,len(img.data),img.image.size,img.image.mode) print((page.extract_text() or '')[:16000]) PY
mkdir -p "/tmp/workspace/poster-revision/assets" "/tmp/workspace/poster-revision/src" "/tmp/workspace/poster-revision/output" && python - <<'PY' from pypdf import PdfReader from PIL import Image from io import BytesIO p='/tmp/workspace/attachments/bd237390-9990-444b-9949-67eaac7183ae/Khushi poster 2.pdf' r=PdfReader(p) for j,img in enumerate(r.pages[0].images, 1): ext = 'png' if img.image.mode=='RGBA' else 'jpg' out=f'/tmp/workspace/poster-revision/assets/figure_{j}.{ext}' img.image.save(out) print(out, img.image.size) PY
No generations found in stream.
We encountered an error while processing your request. Please try again or reach out to us for help.