openmolecules.org

 
Home » DataWarrior » Functionality » suggest: native .pdf export
Re: suggest: native .pdf export [message #903 is a reply to message #898] Tue, 12 May 2020 16:03 Go to previous messageGo to previous message
nbehrnd is currently offline  nbehrnd
Messages: 233
Registered: June 2019
Senior Member
It was possible to replicate the indicated method using the cups pdf printer.

As a closing comment:
Still interested to benefit more from the vector format I wrote a Python script
that reads some of DW's .dwar file content and the retained list of SMILES strings,
calls openabel to visualize the structures, and puts all in an .xlsx file. The
manual work then left was to open this file in LibreOffice Calc, to adjust the
images' sizes to fit the cell size, to apply conditional cell background colors
and to save it as .ods. The file size of the then exported .pdf is slightly less
than half of the one printing from DW with cups while still offering a searchable,
crisply printed text layer, too.
  • Attachment: table_S3.smi
    (Size: 7.79KB, Downloaded 480 times)
  • Attachment: table_S3.dwar
    (Size: 22.49KB, Downloaded 483 times)
  • Attachment: spreadsheet_test.py
    (Size: 4.35KB, Downloaded 549 times)
  • Attachment: test.ods
    (Size: 1.08MB, Downloaded 497 times)
  • Attachment: test.pdf
    (Size: 850.78KB, Downloaded 552 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Working with Form Views
Next Topic: suggest: adjustment .sdf export
Goto Forum:
  


Current Time: Fri Apr 04 17:26:24 CEST 2025

Total time taken to generate the page: 0.04406 seconds