suggest: native .pdf export [message #897] |
Mon, 11 May 2020 12:29 ![Go to next message Go to next message](/forum/theme/myThemeWithHFCSS/images/down.png) |
nbehrnd
Messages: 215 Registered: June 2019
|
Senior Member |
|
|
Based on a .smi derived from elsewhere,[1] which was converted with openbabel
into a .sdf I let DataWarrior screen the structures for a few characteristics.
![index.php?t=getfile&id=184&private=0](index.php?t=getfile&id=184&private=0)
Aiming to share it with one who does not use DataWarrior, I miss a built-in
function to print the table as a .pdf file as a vehicle of discussion.
This could be useful, especially if -- as here -- the cell's background colour
has a significance.
So far, I printed the table via an installed HP printer as a postscript into
a file (of very large file size) and converted it with ps2pdf into a .pdf
like the example file attached. At page breaks, however, lines seem to be
broken (table headings). If exported directly from DW as .pdf, their file size
could be considerably smaller than now (containing an image in the .pdf as a
container) and possibly retain a searchable text-layer.
[1] https://pubs.acs.org/doi/suppl/10.1021/jm301008n/suppl_file/ jm301008n_si_002.xlsx
-
Attachment: table_S3.png
(Size: 95.75KB, Downloaded 965 times)
-
Attachment: table_S3.dwar
(Size: 22.49KB, Downloaded 432 times)
-
Attachment: table_S3.pdf
(Size: 1.81MB, Downloaded 465 times)
|
|
|
|
Re: suggest: native .pdf export [message #903 is a reply to message #898] |
Tue, 12 May 2020 16:03 ![Go to previous message Go to previous message](/forum/theme/myThemeWithHFCSS/images/up.png) ![Go to next message Go to next message](/forum/theme/myThemeWithHFCSS/images/down.png) |
nbehrnd
Messages: 215 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 412 times)
-
Attachment: table_S3.dwar
(Size: 22.49KB, Downloaded 412 times)
-
Attachment: spreadsheet_test.py
(Size: 4.35KB, Downloaded 477 times)
-
Attachment: test.ods
(Size: 1.08MB, Downloaded 421 times)
-
Attachment: test.pdf
(Size: 850.78KB, Downloaded 480 times)
|
|
|
|
Re: suggest: native .pdf export [message #914 is a reply to message #907] |
Fri, 22 May 2020 00:25 ![Go to previous message Go to previous message](/forum/theme/myThemeWithHFCSS/images/up.png) |
thomas
Messages: 696 Registered: June 2014
|
Senior Member |
|
|
DataWarrior uses TAB or comma delimited text files. The smi File only contains spaces between Smiles and Name. If you replace all SPACEs by a TABs in any Text-Editor before pasting into DataWarrior, you will correctly get three columns: Structure, Smiles, and Name
[Updated on: Fri, 22 May 2020 00:26] Report message to a moderator
|
|
|