Skip to content

Instantly share code, notes, and snippets.

View scott-x's full-sized avatar
😃
Recently, I am studying bash programming!

scott scott-x

😃
Recently, I am studying bash programming!
View GitHub Profile
@farhan-raza
farhan-raza / AItoJPEG.cs
Created December 21, 2020 21:58
Convert AI files to PSD, PDF, JPEG or PNG Image Format Programmatically in Java
String dataDir = Utils.getDataDir(AIToJPG.class) + "AI/";
String sourceFileName = dataDir + "34992OStroke.ai";
String outFileName = dataDir + "34992OStroke.jpg";
// Load input AI file
AiImage image = (AiImage)Image.load(sourceFileName);
// Initialize JpegOptions class instance
JpegOptions options = new JpegOptions();
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
package main
import (
"fmt"
"io"
"os"
)
var path = "/Users/novalagung/Documents/temp/test.txt"