OT: Mail system trashes Swedish flag

Ed Greshko Ed.Greshko at greshko.com
Wed Mar 20 06:52:03 UTC 2013


On 03/20/13 14:41, Jonathan Ryshpan wrote:
> I've just completed the first exercise for using inkscape, which is to draw a Swedish flag.  I saved it as a PDF and emailed it to a Swedish friend, but all he got when he viewed the image was an empty rectangle.  It seems the trouble is that somewhere in the mail system, probably in their Windows mail reader, text lines in the PDF were converted from Unix style NL termination to DOS style CR/NL termination.  Sure enough when I converted the file on my system using the command:
>
>     unix2dos -n -f SwedishFlag.pdf SwedishFlag+cr.pdf
>
> the output file displays as an empty box, using either okular or acroread.
>
> Does anyone know what's going on here, or how to send such a file to a Windows machine without it's being trashed?

At this point all I know is this....

Any PDF file to which I apply the conversion results in what you describe.  A PDF file contains binary information.  As such, I don't think the experiment is valid.

>From the man page...

      The Dos2unix package includes utilities "dos2unix" and "unix2dos" to
       convert plain text files in DOS or Mac format to Unix format and vice
       versa.

A PDF isn't a plain text file.

I would ask the recipient to check the file size they have received.

-- 
>From now on, at least during winter time, Im going to blame all spelling an grammar erros on the cat sitting on my chest every time I sit down at the computer....


More information about the users mailing list