Sg2.9
document.place
Recent RSS
document.place
From:  marcus
Date:  25. October 2011, 17:14

Hi.

I really tried to google and also used the search function here, but I didn't find anything helpful.

I have a svg-file I want to open. It's path is '/Volumes/data/dsgn/files/.../n.svg'

When I have a new document and 'File > Place' this file it is imported everything is working fine.

After having a short look at the reference I thougt a script like

// JavaScript Document
var file = new File('/Volumes/data/dsgn/files/.../n.svg');
var item = document.place(file);

would do the same. Unfortunately it is not. Can some perhaps tell me what this script has to look like to import my svg-file?

Re: document.place
From:  marcus
Date:  25. October 2011, 22:31

It is working when the input file is a PDF. But then something is wrong, or not?

CS5, Mac 10.6.latest

Re: document.place
From:  pqbd
Date:  26. October 2011, 00:19

For svg files, I think you need to specify that the placed file is embedded, not linked.

Try this:
var item = document.place(file, false);

Re: document.place
From:  marcus
Date:  27. October 2011, 19:29

It is working. I thought "false" is default and just tried "true". Thank you!

Re: document.place
From:  arronwall
Date:  4. November 2013, 05:10

I wonder whether the professional PDF processor can help with it. I have ever tried to create PDF viewer with the help of its free trial package, and it worked well for me. You cam also google it and select one to help you with that. remember to select one which is totally manual and can be customized by users and allow users to change its default settings. I hope yousuccess. Good luck.

Best regards,
Arron

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Hexagonal Grid Generator 16.11.11