Importing pdf with transparent background

The following code imports a pdf file, but the background is not transparent. Does anyone know how I can accomplish this?<br /><br />thanks,<br />Liz<br /><br />void ImportTransparentImage(SysFile *file) <br />{ <br />do{<br />     IDataBase* db = ::GetDataBase(GetFrontDoc());<br /><br />     InterfacePtr<ICommand> cmdSetPDFPlacePrefs(CmdUtils::CreateCommand(kSetPDFPlacePrefsCmdBoss)); <br />     InterfacePtr<IPDFPlacePrefs> pdfPlacePrefData (cmdSetPDFPlacePrefs, IID_IPDFPLACEPREFS); <br />     pdfPlacePrefData->SetTransparentBackground(kTrue); <br /><br />     InterfacePtr<ICommand> placePDFCmd(CmdUtils::CreateCommand(kImportAndPlaceCmdBoss)); <br />     InterfacePtr<IImportFileCmdData> importFileCmdData(placePDFCmd, IID_IIMPORTFILECMDDATA); <br />     importFileCmdData->Set(db, *file, kMinimalUI); <br /><br />     ILayoutControlData *layout = Utils<ILayoutUIUtils>()->QueryFrontLayoutData();<br />     InterfacePtr<ISpread> spread(layout->GetSpread(), IID_ISPREAD);<br />     InterfacePtr<IPlacePIData> placePIData(placePDFCmd, UseDefaultIID()); <br />     PMPointList points(1); <br />     UIDRef spreadUIDRef = ::GetUIDRef(spread);<br />     PMPoint zp = spread->GetSpreadZeroPoint(); <br />     points.Append(PMPoint(zp.X()+0,zp.Y()+0)); <br />     placePIData->Set(spreadUIDRef, &points, kFalse); <br />}while(kFalse);<br />}

There may be another way to do this but I have accomplished
what you are trying to do by saving the image in photoshop as a png
24 and then importing that to the stage are in your flash file,
this will save the file without having to use a matte and preserve
the transparent qualities.

Similar Messages

  • Pdf with transparent background

    I put a logo inside a PDF. The PDF has a transparent background. When I import the PDF into FCPX, the PDF's background is opaque white. When I import the same PDF into Motion 5, the PDF's background is transparent. I want  transparent backgrounds in FCP. How do I do it? Does FCPX support transparent PDF files?
    Thanks for your help.

    ivan5 wrote:
    Thanks for the reply Luis. True, png is an option. I prefer a vector based PDF file in this paticular case, because I want the ability to increase the PDF's scale in FCP and maintain fine detail. Unfortunately, raster based PNG files don't have the same flexibility.
    True.
    But since with pdf you don't get the support for transparency,
    there is as middle-of-the-road solution.
    You can rasterize and choose a big-enough resolution for your purposes.
    In Preview, if you save as png, you can choose a resolution of, say, 300 dpi, or 3000 dpi.
    Of course, the larger the resolution the larger a file you get. This is not as elegant a solution as a vector graphics, but it works and lets work with transparency. Call it a workaround if you will.
    I suggest you keep the original pdf and try with a few different resolutions in png to find the sweet spot between file size and zoomability. Keep in mind that very large files may also diminish performance somewhat.

  • Trying to import files with transparent backgrounds into Premier Elements 10

    I am struggling to import files from Photoshop CS3 into Premier Elements 10 and preserve their transparent background. I have tried .png (8 and 24 bit), .gif and .psd files. I have tried rasterizing the type layer before "Saving for web and devices" but can't get anything to work. The imported files end up as either text on a white background (.gif) or the file imports as a black background with no type visible (.png and .psd). I have read a few forums but can't find any suggestions beyond what I have already tried. I also get the same problem if I "Save for web and devices" out of Illustrator.
    Any suggestions much appreciated.
    Mick

    kaare
    You have brought up one very interesting maintaining transparency question which I feel goes more to the trigger on the
    Premiere Elements Videomerge pop up than to the Photoshop CS2 Save As with or without a check mark for Maximum Compatibility
    And, I find that Photoshop CS5.1 as well as CS2 involvement in this matter is the same.
    I created three 720 x 480 pixels documents, each with a blue colored circle on a transparent background in
    Photoshop CS2 and saved each
    psd with check mark next to Maximize Compatibility
    psd with no check mark next to Maximize Compatibility
    png
    Each of them was imported into a NTSC DV Standard Premiere Elements 11 Windows 7 64 bit project.
    Each triggered the Premiere Elements 11 Videomerge pop up.
    If I checked No for the program request to apply Videomerge, then all 3 results were the same, that is,
    the area around the circle was transparent and the circle was not...just the way it was created in Photoshop CS2.
    So, why was the Videomerge message telling me "Clip being dropped contains solid background color" when
    it had transparency represented by black and did not have a solid background color?
    Even more interesting was what happened if I selected Yes to the program's request to
    apply Videomerge to create transparency for what it claimed to be seeing as "solid background color".
    The result was the same for all three cases, that is, the inside content of the circle became transparent
    and the "black background" became a "solid color".
    Videomerge is not one of my preferred Premiere Elements options.
    To avoid the Videomerge pop up, I would suggest placing a check mark next to the "Do not show again.",
    followed by No in the Videomerge pop up. When you do, you should not be confused by the activities of the
    Videomerge pop up activities and you should have no problems with the maintenance of the Photoshop
    created transparency in the Premiere Elements project.
    ATR

  • Help! Trying to import image with transparent background

    I'm trying to import a picture that has a transparent backgound so when i layer it over video its just the picture itself not the canvas it was made on.
    In photo shop I made it on a transparent canvas.
    Whats my next step?

    Thank you.
    I have made my image with a transparent background in photoshop, now I need to bring it into final cut pro maintaining that transparent background, so I can layer it on video.
    How to I do this?

  • How to export pdf with transparent background (or NO white background)?

    or, how do i get rid of the white background?
    I want to add a watermark behind the pages document AFTER pdf-creation (to be more exact: a light picture behind the text in the center of the page)

    Thanks everyone
    the trick is the following: it's a daily rewritten menu card, that's published in 2 directions:
    1. we print it on preprinted cardbords (therefore we need no background in the pages document) (30 times every day)
    2. we load it on the webserver, to make it available on the website and to send it out via newsletter. (technically i have a automator printplugin created which does the job of inserting the same backgroundimage as on the preprinted cards and then uploading it to the server)
    Well, I guess it does not look to shabby
    any ideas?

  • HT4641 Importing graphics with with transparent backgrounds such as .psd or .eps

    I want to use this for an art project for my sons class. Can I import .psd files with transparent backgrounds as per Word, to retain the clear cut shape/opacity of background. Or can I import .eps illustrator files with transparent backgrounds? Thanks.

    If you need transparency - as I stated - you need to convert the image to GIF. PSD is a layered graphic workspace file specifically for PhotoShop; EPS can be read by more applications, but is still basically a graphic print format. It might serve your customer needs, but wouldn't be the format I would recommend for general distribution. Typically you wouldn't embed EPS in another file, it would be the container for the print ready document (and the concern for transparency would be somewhat moot).
    However, I'm not familiar with the intimate details of your project or customer needs, so take that for what its worth.

  • Saving image and layer separately with transparent background

    I have a photo with a layer and I am trying to save two images (main photo and layer) with transparent background. I am able to save the  main photo with transparent background but somehow not able to save the layer with transparent background despite selecting the option while saving as PNG. Any help will be appreciated?

    OK... I'm probably not being clear.
    When I import the PDF, I get a typical architect's line drawing as shown below. So the background is displaying as white. In Corel, when you save a GIF or a PNG, you can specify that -everything- that is the 'background colour' is rendered as transparent. IOW: there's no need to erase the 'white' pixels; they are auto-magically converted to transparent.
    But in PS (CS4), no matter what I try, the rendered PNG or GIFs show as white, rather than transparent.
    Is there a way to have this same behaviour in PS? Or do I first have to use the erase or background erase tools to get rid of the white?

  • Animated gif with transparent background

    When I import in Keynote an animated gif with transparent background. The background becomes white. I did the following tests:
    If I extract a single image from the animated gif and import it in keynote the background is actually transparent but it becomes white when I import the whole gif.
    I also checked with other applications (NeoOffice) and the animated gif does come out with a transparent background.
    Do I do something wrong in Keynote ?

    This has been an ongoing issue for me since I switched from Powerpoint to Keynote. Most of the animated gifs with transparent backgrounds that I used with Powerpoint are no longer transparent in Keynote. You may want to search for those earlier threads on this topic...
    To summarize: I've had to open up my animated gifs in After Effects and use the Color Key effect to restore transparency, with mixed success.
    Good luck!

  • Creating a PDF with Transparent Images

    Hi,
    Here is my problem:
    I am using Acrobat 9. I design posters in another program. I print to PDF.
    I design the poster and must put a logo in it with a transparent background. Note: If the poster background is white I never have any problems.
    This poster has a pink background and hence I have to put the logo into the poster in a graphic type of gif or tiff or png to maintain transparency.
    All is fine in my design program - transparency is fine etc.
    I print to PDF (Acrobat 9.0) and the dreaded white box occurs. Note, I put an old version of the logo, one I cannot use, and it maintained its transparency fine. So this means that some gif files Acrobat 9.0 keeps transparency and some it does not.
    So, in summary, I have tried all types of file formats gif, png, tiff and all types of programs to remove the logo background and save as one of the later formats and NONE maintain the transparency in the PDF output.
    I have even tried saving the whole poster as a jpeg - but the quality was too poor to print.
    I have used Word, Photoshop, MS Photodraw, Elements etc.
    I have no idea why a gif I have from years ago works and one that I am creating now maintain their tranparency in the PDF.
    I am under a deadline and am VERY worried this will not get done.
    I am immensely grateful for any help - I have been at this for countless weeks and hours...
    Thanks,
    Elisabeth

    I am using MS Publisher and even Word 2010 for poster design and have used multiple programs (and multiple formats that support transparency)  for logo editing - removal of background - Photoshop, etc.
    I place logos, both gifs, with transparent backgrounds in a document and print PDF and one or none will show transparency - it makes no sense at all.
    Most of the time the background is a white block. It couldnt be more frustrating.
    It is a simple document/poster with just a few words of text and a logo...
    Are there settings in Acrobat 9.0 that need to be turned on that I am missing. I had no trouble with Acrobat 7 - it worked EVERY time.
    I was on  with tech support for 5 hrs and there was no knowledge of this - he just wanted to reinstall 7.0 which did not work.
    Need ideas - overprinting is on. I noticed that flattening doesnt allow me to pick transparent objects - have no ideas if I am even on the right track.
    Have read everything I can find online regarding Acrobat 9.0, PDF creation and transparent logo backgrounds.
    Sooo grateful for any help!
    Thanks,
    Elisabeth

  • Images with transparent backgrounds in MDM

    I've got several images in MDM with transparent backgrounds, yet when i look at these in image manager (or thumbnails in data manager) they look terrible. The transparency is black for example, among other issues. These images are all okay in photoshop, they have been saved as .png and imported through the data manager.
    Has this import ruined these image files on the way in? When my search engines etc extract the images, what of the transparencies?

    Hi Adam,
    MDM makes use of Internet Explorer quite frequently. I can imagine that this engine is also used to display images in MDM. However, Internet Explorer in version 6 does not support transparency in PNG images. That is why the black background occurs.
    Since your images after upload are only saved in a binary object in the database, you should not encounter any data loss when using the same images. If you need to create variants, I would consider using Photoshop for the creation of those.
    I hope that helps you further.
    Best regards
    Christian

  • Printing Images with Transparent Background

    Sorry if this question has already been asked, but I couldn't find anything similar to it in a search through the archives.
    I have a couple of images with transparent backgrounds in a document, much like the shells and the blue flowers in the "Classic Brochure" template in Pages 2.0.1. These images show up perfect on the screen, and when printed as .pdf files, but when I print to either an hp color laserjet 4600 or an hp laserjet 1320, the images show up with a clear box around them; the colors under the box (where it should be transparent) are faded and slightly blurred. This happens both with my document, and the unaltered "Classic Brochure" template. I've tried moving various objects backwards and forwards, but it doen't seem to have any effect. It even happens with one of the text boxes I have in the document.
    Another odd thing is that the printed "box" isn't the same size as the box that appears when you click on the object in the document. It's a bit bigger. I've seen other posts about problems with hp printers, but I'm not sure it's related. Any insight would be appreciated.
    MAF
    iMac Intel Core Duo   Mac OS X (10.4.7)  

    http://indesignsecrets.com/eliminating-ydb-yucky-discolored-box-syndrome.php
    Bob

  • Framing image with transparent background png frame

    hi,
    i'm trying to find a way to frame images with transparent background png frames...
    what i'm doing now is
    1-drawing my image on a panel
    2-creating a 2nd image using the frame's filename, stretching this 'frame-image' to a size slighlty larger than that of my main image and drawing the 'frame-image'
    the problems with this method are:
    1-depending on the width of the frame, the frame sometimes hides parts of the image (thick frame), and sometimes there is a gap between the frame and the image (thin frame).
    2-if the image file containing the frame is larger than the frame (Ex: The image is 300x300, the frame is centered in this image and is 200x200; as opposed to the image is 200x200 and the frame takes up all the space), when i position the 'frame-image' near the top left corner of the image i want to frame, the frame appears at the wrong place (shifted down and to the right). This is due to the fact that i'm placing the top corner of the created 'frame-image' and not the frame, who is not in the top corner of my 'frame-image'.
    Is there a way to do what i'm trying to do???
    My ideas (which i don't know how to achieve are)
    1-To 'analyse' my transparent background png file and
         1-only keep the frame,
         2-calculate the frame's thickness
    OR
    2-Let java do the analyzing for me and tell it to frame my image with the frame in the png file
    please feel free to ask for more explanations if my description/question is confusing,
    thanks.

    Have you looked into the Border interface? If what you really want to do
    is put a custom border on a component, you may be able to do it this way.
    Anyway, here is some code that stacks and centres 2 images. It's not hard to do.
    import java.awt.*;
    import java.awt.image.*;
    import java.io.*;
    import java.net.*;
    import javax.imageio.*;
    import javax.swing.*;
    public class Example extends JComponent {
        private BufferedImage backgroundImage;
        private BufferedImage foregroundImage;
        public Example(BufferedImage backgroundImage, BufferedImage foregroundImage) {
            this.backgroundImage = backgroundImage;
            this.foregroundImage = foregroundImage;
        public Dimension getPreferredSize() {
            int w = backgroundImage.getWidth();
            int h = backgroundImage.getHeight();
            return new Dimension(w, h); //assuming this is bigger
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            int w = getWidth();
            int h = getHeight();
            //paint both, centred
            int x0 = (w-backgroundImage.getWidth())/2, y0 = (h-backgroundImage.getHeight())/2;
            g.drawImage(backgroundImage, x0, y0, null);
            int x1 = (w-foregroundImage.getWidth())/2, y1 = (h-foregroundImage.getHeight())/2;
            g.drawImage(foregroundImage, x1, y1, null);
        public static void main(String[] args) throws IOException {
            URL url1 = new URL("http://weblogs.java.net/jag/Image54-large.jpeg");
            URL url2 = new URL("http://weblogs.java.net/jag/DukeSaltimbanqueSmall.jpeg");
            JComponent comp = new Example(ImageIO.read(url1), ImageIO.read(url2));
            final JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(comp);
            f.pack();
            SwingUtilities.invokeLater(new Runnable(){
                public void run() {
                    f.setLocationRelativeTo(null);
                    f.setVisible(true);
    }

  • QuickTime with Transparent Background

    > This message is in MIME format. Since your mail reader
    does not understand
    this format, some or all of this message may not be legible.
    --B_3234432307_151173
    Content-type: text/plain;
    charset="ISO-8859-1"
    Content-transfer-encoding: 8bit
    Hi
    I am having problems in publishing a file done in Flash- a
    logo spinning,
    and I want the background to be transparent. Under Publish
    Settings, I have
    the following:
    ALPHA: Alpha-transparent
    Layer: Auto
    And checked the Flatten (Make self-contained).
    However when I import the file into another application-
    Apple�s Motion, I
    get a white background- which is what I have originally. Am I
    doing
    something wrong?
    I even check the track in QT Pro and set the Movie Properties
    but it is not
    becoming transparent. I appreciate any tips on it.
    Thank you.
    Kelvin
    --B_3234432307_151173
    Content-type: text/html;
    charset="ISO-8859-1"
    Content-transfer-encoding: quoted-printable
    <HTML>
    <HEAD>
    <TITLE>QuickTime with Transparent
    Background</TITLE>
    </HEAD>
    <BODY>
    <FONT FACE=3D"Arial"><SPAN
    STYLE=3D'font-size:12.0px'>Hi<BR>
    <BR>
    I am having problems in publishing a file done in Flash- a
    logo spinning, a=
    nd I want the background to be transparent. Under Publish
    Settings, I have t=
    he following:<BR>
    <BR>
    ALPHA: Alpha-transparent<BR>
    Layer: Auto<BR>
    <BR>
    And checked the Flatten (Make self-contained).<BR>
    <BR>
    However when I import the file into another application-
    Apple&#8217;s Moti=
    on, I get a white background- which is what I have
    originally. Am I doing so=
    mething wrong? <BR>
    <BR>
    I even check the track in QT Pro and set the Movie Properties
    but it is not=
    becoming transparent. I appreciate any tips on it.
    <BR>
    <BR>
    Thank you.<BR>
    <BR>
    Kelvin </SPAN></FONT>
    </BODY>
    </HTML>
    --B_3234432307_151173--

    I've never gotten it to work either. I usually set the
    background to something not used in the animation, like bright
    green, and then composite the video. I've never used Motion, so I
    don't know if this is possible.

  • Image with transparent background changes surrounding fill color when PMS...

    Hello.
    I have a .PSD image I'm using in InDesign CS3. It's a greyscale image with a transparent background. When I bring it into InDesign and set the background color of the image box to a Pantone and then print it, the PMS color within the area of the .PSD image size changes color compared to the rest of the page. But, when the same document is printed, but with "All Spot to Process" via the Ink Manager, the page prints fine. I get the same results on a number of different Canon and Xerox proofing printers. I have uploaded a PDF to my web server showing an example of the results I'm getting the PDF can be found here:
    http://theboyk.net/temp/PMSvsCMYK.pdf
    The first page is the document printed normally. You can see the color change in the green (Pantone Green). The second page is the same document printed with "All Spot to Process" via Ink Manager.
    Does anyone know why this happens when I leave it as printing a spot color?
    Any advice would be appreciated!
    Thanks,
    Kristin.

    I totally forgot to put that in my post.  Yes, I am putting logos with transparent backgrounds in front of colored rectangles.  That's how I noticed that this one logo is showing up with a white background.  The weird thing is that the other two logos are fine.  I did find a different version of this logo and this one works fine.  The one that works fine is a JPG and the one that shows up with a white background is a JPG.

  • How can I export a file with transparent background?

    Hi all,
    I know InDesign doesn't allow to export a PNG file, but I need my file to be in image file format with transparent background.
    I'm still learning so I am stuck here. How can I export a file with transparent background?

    If you can't get the PNG file export to work, you can export a pdf and open it in Photoshop, from there you can save it as whatever you like.

Maybe you are looking for