### Generating ps files from pictures

If you have, you can use Adobe Acrobat Pro on an image in pdf format and use "Save As" PostScript. If you don't have it, cross your fingers and hope that

works.

1. What about opening the image in Preview, selecting print, and then in the PDF drop down, selecting "Save as Postacript"?

2. That would work, too. But in my case the picture is not the same size as the paper, so printing adds extra space at the top and bottom of the picture, see here.

### Popular posts from this blog

You can easily submit data in an html form via jQuery's $.post. But you need to do a little more to upload a file. I suggest the jQuery Form Plugin . Here is the HTML form: <html> <head> <title>Title</title> </head> <body> <form action="/test.cgi" enctype="multipart/form-data" method="post"> <input name="myFile" type="file" /> <div id="results"> </div> </form> </body> </html> This is the Javascript file myFrom.js:$(document).ready(function() { $('form').ajaxForm( { beforeSubmit: function() {$('#results').html('Submitting...'); }, success: function(data) { var $out =$('#results'); $out.html('Your results:');$out.append('<div><pre>'+ data +'</pre></div>');