BMP/JPG/PNG圖檔轉換成EPS圖檔


下面不管哪個情況都會需要安裝Adobe Acrobat,
Adobe Acrobat是要付費的版本,跟免費安裝使用的Adobe Reader功能上有很大的不同。

任意圖檔轉換成EPS圖檔


可以用Adobe Acrobat打開圖檔,然後另存成EPS圖檔

我最後是用了Matlab來做處理,因為Matlab可以開很多種圖檔,下面附上轉換程式碼,請安裝Matlab後服用,謝謝。

[file, path] = uigetfile( ...
       {'*.jpg;*.bmp;*.png;*.tif', 'All Image Files (*.jpg;*.bmp;*.png;*.tif)'; ...
        '*.*',                   'All Files (*.*)'}, ...
        'Select image files for process', 'MultiSelect', 'on');

if isequal(file, 0) || isequal(path, 0)
    disp('User pressed cancel');
    return;
end

if iscell(file)
    file_num = size(file,2);
else
    file_num = 1;
end

for i=1:file_num

    if iscell(file)
        imgfname = file{i};
    else
        imgfname = file;
    end

    imgpath = fullfile(path, imgfname);
    [droppedpath, fname, fext] = fileparts(imgpath);

    img = imread(imgpath);
    if isempty(img)
        disp(['read image fail. name=' imgpath]);
        continue;
    end

    % processing img2epsc
    [y x c] = size(img);
    h = figure('Visible','off', 'Units','Pixels',...
               'Resize','off', 'Position',[100 100 x y],...
              'PaperUnit','points','PaperPosition',[0 0 x y]);
    axes('position',[0 0 1 1]);
    image(img);
    axis off;
    saveas(gcf, fullfile(path, [fname '.eps']), 'epsc');

    disp(['converted image ..... ' int2str(i)]);
end


Word, Powerpoint, Excel檔轉成EPS圖檔


Word 2003 SP2之後都支援直接另存成PDF檔案的功能,

請直接另存成PDF後用Adobe Acrobat 開啟你的PDF,另存成EPS圖檔




Visio檔轉成EPS圖檔


同上,請直接另存成PDF後用Adobe Acrobat 開啟你的PDF,另存成EPS圖檔

留言