How to copy and paste vector graphics

I have a program that draws curves and I would like to copy and paste them as a path into Adobe Photoshop.
I am using the Clipboard class (Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard()), but I
do not know what string I should use for the StringSelection argument in the setContents method. I tried the
string that describes my curves in PostScript.
But that didn't even work for pasting into Adobe Illustrator, although Illustrator is capable of opening
a PostScript file. (However Photoshop only opens a PostScript file as a bitmap, not as a path.)
With Illustrator, instead of pasting the curves, it just pasted the PostScript text.
Please help.
Thanks.

For me, freehep is the fifth hit when googling "java vector graphics library". But of course I don't get to "[Access hidden information|http://www.copernic.com/en/products/agent/index.html]" without paying up :).
For a simpler way: since you already say you can save to postscript, make a temporary ps file and export it in a file list (keywords "java drag and drop files"). Perhaps Illustrator then opens the file and the user can copy/paste it there. Otherwise you have to figure out what Illustrator expects on the clipboard and put it there in the same format.
Another option might be to use some com wrapper to talk to Illustrator directly (but probably need a commercial com wrapper for that).

Similar Messages

  • How to copy and paste the graphics from illustrator to MS word. What I tried is exporting in png with highest resolution and then inserting in to word. This loses a bit of resolution in comparison to direct copy and paste as EMF.  But if I do a copy and p

    How to copy and paste the graphics from illustrator to MS word. What I tried is exporting in png with highest resolution and then inserting in to word. This loses a bit of resolution in comparison to direct copy and paste as EMF.  But if I do a copy and paste, and then take a print of the document, all the graphs and text is printed upside down, flipped back.

    Use the Pencil Tool
    alex
    adrian stock wrote:
    > How to copy and paste a single pixel
    >
    > I want to copy a single pixel and then paste it in the
    position of
    > another pixel in the same image.
    >
    > (This is in effect changing the colour of the target
    pixel, isn't it.
    > But in my case copying an existing pixel seems simpler
    than selecting a
    > colour from the swatch or using the colour picker.)
    >
    > What is the most efficient way of doing this?
    >
    > I tried to select one pixel with the marquee tool. Then
    copied it with
    > control-C, but then how do I select the target pixel and
    paste with
    > control-V?
    >
    > Thanks for your help.
    >
    > Adrian
    >

  • How to copy and paste text from one photo book page to another.

    hello,i downloaded this software 2days ago,and i've been having so much fun with it. pls i need help on how to copy and paste text from one photo book page to another. Secondly how to copy my completed photo book pages project to another laptop for printing. thanks
    This question was solved.
    View Solution.

    Hi DG.
    The easiest way to copy an HP Photo Creations project to another computer is to click the Share button. That will upload the project to the Web and give you a link you can paste into an email. Clicking the link on the other computer allows you to download the project and personalize it. This quick video shows the process. (The screen looks slightly different now, but the concept is the same.)
    Another way to share a project is copy the project folder to a thumb drive. Look in Documents/HP Photo Creations/My Things to find your saved projects.
    Our customer support team would be happy to walk you through the process. Contact them at [email protected]
    Hope this helps,
    RocketLife 
    RocketLife, developer of HP Photo Creations
    » Visit the HP Photo Creations Facebook page — news, tips, and inspiration
    » See the HP Photo Creations video tours — cool tips in under 2 minutes
    » Contact Customer Support — get answers from the experts

  • How to copy and paste a single pixel

    How to copy and paste a single pixel
    I want to copy a single pixel and then paste it in the
    position of
    another pixel in the same image.
    (This is in effect changing the colour of the target pixel,
    isn't it.
    But in my case copying an existing pixel seems simpler than
    selecting a
    colour from the swatch or using the colour picker.)
    What is the most efficient way of doing this?
    I tried to select one pixel with the marquee tool. Then
    copied it with
    control-C, but then how do I select the target pixel and
    paste with
    control-V?
    Thanks for your help.
    Adrian

    Use the Pencil Tool
    alex
    adrian stock wrote:
    > How to copy and paste a single pixel
    >
    > I want to copy a single pixel and then paste it in the
    position of
    > another pixel in the same image.
    >
    > (This is in effect changing the colour of the target
    pixel, isn't it.
    > But in my case copying an existing pixel seems simpler
    than selecting a
    > colour from the swatch or using the colour picker.)
    >
    > What is the most efficient way of doing this?
    >
    > I tried to select one pixel with the marquee tool. Then
    copied it with
    > control-C, but then how do I select the target pixel and
    paste with
    > control-V?
    >
    > Thanks for your help.
    >
    > Adrian
    >

  • How to copy and paste file in mavericks

    how to copy and paste file in mavericks?

    Spoombung wrote:
    I actually can't get copy and paste to work in Mavericks!!!
    Is it me, or is there something wrong with it? I can hardly believe this was overlooked....
    Obviously it was not overlooked.
    Select a file, go to the edit menu and choose Copy, open another folder and choose Paste from the edit menu.
    What happened (error messages etc)

  • I am a new iPad user and cannot figure out how to copy and paste from a website to pages. Any insight?

    I am a new iPad user. I cannot figure out how to copy and paste from a website to a pages document, and vice versa. Any ideas?

    Long press on the text you would like to select (tapping and holding) and then release after the magnifying glass shows up. This will select a single word. Then use the blue dots and drag them to select a region of test. Then press "copy". Open pages, and long press and release where you would like to paste. Then select "paste". That should paste the text.
    If the text doesn't select within the browser, it might be an uncopyable format. Like if the text was within an image, naturally you would be unable to select it. The only thing to do there is long press the image and selecting "save image", adding it to your camera roll. Then you could insert the image within pages.

  • How to copy and paste photos to word doc?

    how to copy and paste photos from finder to word doc? It just shows the url...

    Hi John,
    You can do as the followings:
    Create a blank form with InfoPath Designer 2010,
    Add a Rich Text Box control and Submit button in the blank form
    Publish the form to your SharePoint site
    Open the form library and create a document
    Copy the table with text from word file
    Paste the table in the Rich Text Box area, the paste option is Keep Source Formatting
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to copy and paste

    Having trouble learning how to copy and paste...

    Write something.  Long tap on it, choose select, adjust the amount you want copy, tap the page, continue typing. To paste tap the page and select paste.watch,Write something.  I cut and pasted write something. The iPad User Guide for IOs7" free at iBooks explains it better.

  • How to copy and paste the text in Russian - 'command+c' erases it

    How to copy and paste the text in Russian - 'command+c' erases it

    I want to publish a book with Blurb. They don't have Russian fonts, so I have to type the text in Russian in Notes in my iPad, send it to my e-mail box, and then open the e-mail box in Mac, and copy and paste the text into the book template of Blurbs. I don't know how to make a Russian keyboard in Mac to be able to type quickly. I asked about it  in the Apple store, and they showed me how to find a Russian keyboard in the net, but it takes much time to type using a screen keyboard, and the texts also cannot be copied and pasted, when they are in Russian. They are erased when I press 'command+C", and all I have is a single letter 'c' instead. No problems with texts in English. Maybe Russian is not supported for copying and pasting?:(

  • How to copy and paste a photo in another folder using Aperture?

    How to copy and paste a photo in another folder using Aperture?

    What do you want to achieve? Do you really want to create a copy of an image, and thus create a second copy of the master image file? You will waste disk space this way.
    Usually you would create new versions of an image, if you want versions with different adjustments. Versions do not require much additional disk space. But all versions of an  image have to be in the same project. To create a new version: Main menu bar -> Photos -> Duplicate Version
    To create a copy of an image in another project (and to waste the space ) drag the image to another project while holding down the option key. This will create a copy in the other project.
    Sofar nobody here could come up with a good reason why one would want to create a copy. I am curious what in your workflow requires you to do that. Would you mind to tell us?
    Regards
    Léonie

  • How to copy and paste in Adobe ios?

    How to copy and paste in Adobe ios?

    Hi alvintheartist,
    Please try the following steps.
    Press & hold your finger over text in a PDF document.
    Move the blue circle "grabbers" (handles) to expand/reduce the text selection.
    Select Copy from the context menu that pops up.
    You can paste the copied text into other iOS app or the Search field in Adobe Reader for iOS.
    Please note that you cannot paste text directly to a PDF document (because Adobe Reader for iOS is not a PDF editor).  However, you can add text annotations to a PDF document.
    If you are not able to select text at all, it is highly likely that your PDF document is a scanned PDF (that contains no text).
    Please let us know if you have additional questions.

  • Copy and Paste Vector Data

    Is it possible to copy and paste vector data from one anchor point to another?

    See the pair of scripts here named JET_HandlesCopy.jsx and JET_HandlesPaste.jsx.
    JET

  • I can not find out how to copy and paste firefox does not allow it

    Firefox does not allow me to highlight html documents when on line and then copy and paste
    When I left click to highlight it just moves a ghost copy of the whole document away from where you begin.
    I can not find out how to copy and paste firefox does not allow it

    What is your Operating System?
    How do you highlight the HTML document and copy the selected text to the clipboard?
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot.

  • How to copy and paste files to Time Capsule

    I thought it could be used as an external disk.
    Do you guys know how to copy and paste files directly into Time Capsule?

    I thought it could be used as an external disk.
    An external disk...also known as a local disk....connects directly to a computer using USB or FireWire.
    The Time Capsule is a network disk, since it connects direct to a network. As such, it s a SHARED network device
    Open a Finder window and look for the SHARED heading on the left side of the window. The Time Capsule icon should appear there. Click on the Time Caspule icon.
    A folder, representing the Time Capsule drive named "Data" (unless you have changed the name of the drive) will appear to the right
    Double click on "Data" to mount the Time Capsule drive on the desktop. You may need to click "Connect As" and enter the Time Capsule device password the first time that you do this.

  • Why are my colors changing when copy and paste a graphic from docA to docB both in illustrator?

    Both documents in Illustrator CC are RGB and I'm trying to copy a logo onto a template, but the color of the logo completely changes when I copy and paste it into the template. The logo has three different pinks and they turn red when pasted. There is no graphic styling and the logo is all gradient.

    What is weird is that we get a lot of logos from the same company and we put it on shirt templates so they can see size wise on how it would look on shirts. It's happened with other logos, but very slightly. I asked my co-worker who sends me the logos what version she uses and she also uses CC but does not know what version the other company uses. To them, it doesn't matter if the logo colors get altered, they have the PMS colors to work off of for screen printing. I just want to make sure that if another company sends us logos with PMS colors, we will know how to fix it.

Maybe you are looking for

  • MacBook pro 1.86GHz Temperature Reading

    I'm just curious on what you all think because to be honest after reading all the stories about temperature of the MacBook Pro I decided to get the kernel hack for reading the temperature sensor. With the MagSafe plugged in, brightness turned to full

  • Oracle Application Server 10.1.0.2 contains JDK 1.4?

    I download Oracle Application Server 10.1.0.2 and this contains JDK 1.4. How alter to JDK 1.5 or 1.6?

  • Missing User settings and files after disabling Filevault on Lion

    I just installed OS X Lion on my mac and everything worked fine until I disabled the legacy filevault on my system. When the machine rebooted it had wipped out all my settings and files it would seem. After a bit of searching i found my files in the

  • Carrier Code in Customs Declaration

    Hello, Where must the Carrier Code be stored in the Customs Declaration so that it prints out on the U.S. import forms 3461 and 7501?

  • Organizational Model Hierarchy

    Hi Guy,   I have created the Organizational Unit, but i am not able to assign the hierarchy for the organizational unit.   Could any one please let me know how can assign the superior for the organzational unit? Thanks and Regards, Gopi.