Preserving alpha while converting images to grayscale

I am trying to convert images into grayscale.
I use this code
public static BufferedImage grayScale(BufferedImage im) {
        BufferedImage image = new BufferedImage(im.getWidth(), im.getHeight(), BufferedImage.TYPE_BYTE_GRAY);
        Graphics g = image.getGraphics();
        g.drawImage(im, 0, 0, null);
        g.dispose();
        return image;
    }but transparent parts become black. Is there a simple way to preserve opacity while converting to grayscale.

Since you want to preserve the alpha channel you'll need to get and set the pixels yourself. And you'll have to use a BufferedImage type that
supports an alpha channel. TYPE_BYTE_GRAY won't do...
public static BufferedImage grayScale(BufferedImage im) {
     BufferedImage grayImage = new BufferedImage(im.getWidth(), im.getHeith(), BufferedImage.TYPE_INT_ARGB);
     for(int x = 0; x < im.getWidth(); x++)
          for(int y = 0; y < im.getHeight(); y++){
               int argb = im.getRGB(x,y);
               int a = (argb >> 24) & 0xff;
               int r = (argb >> 16) & 0xff;
               int g = (argb >>  8) & 0xff;
               int b = (argb      ) & 0xff;
               int l= (int) (.299 * r + .587 * g + .114 * b) //luminance
               grayImage.setRGB(x,y, (a << 24) + (l << 16) + (l << 8) + l);
     return grayImage;
}

Similar Messages

  • Error while converting Image -to- PDF and then to PDF/A

    Hi,
    I'm trying to convert a Image format(JPEG,bmp,tiff) to PDF and then to PDF/A. I could able to convert Image to PDF successfully.
    I'm getting the below error while converting the PDF(that was generated) to PDF/A.
    Caused by: com.adobe.livecycle.output.exception.OutputException: Input Document is a already flat PDF Document
    at com.adobe.printSubmitter.PrintServer.transformPDF(PrintServer.java:307)
    at com.adobe.printSubmitter.service.OutputServiceImpl.transformPDFInTxn(OutputServiceImpl.ja va:518)
    at com.adobe.printSubmitter.service.OutputServiceImpl$4.doInTransaction(OutputServiceImpl.ja va:481)
    ... 106 more
    Error OCCURRED: ALC-DSC-000-000: com.adobe.idp.dsc.DSCException: Internal error.
    Please give me the solution to convert PDF to PDF/A?

    I've just read a footnote in the API documentation which indicates that the transformPDF function cannot be used for this purpose:
    "GS_Enterprise said on Nov 24, 2007 at 12:03 PM :
    Please note that the parameter "inPdfDoc" for transformPDF assumes that the stream content is an XFA-based PDF, and that it's not an XFA-based PDF with a PDF background (also known as "XFA foreground"). In other words, this function does not convert any input PDF to PDF/A, but only those PDFs generated from an XFA template which does not include any static PDF content as a background."

  • Keep the same name while converting images to PDF

    I am using Automator to convert images to PDF. The new images are in a different folder, but it is asking for an output file name. Can't I tell it to just keep the same name as the old file?

    leaving the exact format, can you explain what does it mean by correctly formed Arabic fonts ?
    What I did is created a text document in Arabic and converted it to PDF and the same file is converted back to word and the results were all junk..

  • Out of memeory error while converting images

    public class PcxToJpgConverter
    private void convertUsingJimi(String sourceFilePath, String destinationFilePath)
    try
    Image image = Jimi.getImage(sourceFilePath);
    Jimi.putImage(image, destinationFilePath);
    catch (JimiException ex)
    System.out.println("Oops!!! Error occured during conversion...");
    ex.printStackTrace();
    public static void main(String[] args)
    PcxToJpgConverter converter = new PcxToJpgConverter();
    converter.convertUsingJimi("F:/mypcx.pcx", "F:/myjpg.jpg");
    while running this code i am getting tthe message
    java PcxToJpgConverter
    java.lang.OutOfMemoryError
    <<no stack trace available>>
    help me to resolve this

    Could you pls provide more info
    version number of the products you are using,
    how long your run the app to get the out of memory error.
    does the the behavior vary with different heap size for the jvm ..
    any other setails will help.
    -Prasad

  • Gray lines while converting 2010 Word images to pdf

    With the new Acrobat version X1, I've run into a problem every time I try to convert images on a Word 2010 document to a PDF.  While all lines on the document are black, many of the lines including bubble-notes appear very light grey, and difficult to read.  I've searched for months for a solution without any luck, and I tried other computers with different versions to verify it wasn't just my machine. 
    Is there a specific setting that I need to change during conversion so that black lines remain black instead of this weird gray-scale problem?  See below for example.
    Before, snapshot taken from Microsoft Word:
    After conversion in .PDF document format, taken from Acrobat XI:

    Word:
    I attempted to change the picture format, specifically the image control.  Three of the four options - Automatic, Grayscale, Black & White - produced no different results.  The fourth "Washout" option made the problem worse, as the dwg became brighter in both the .doc and the .pdf.
    Autocad:
    Changing the lineweights made no difference either.  Our company standard is black background, white object lines, but even when I reverse it and make the line colors as dark as possible, I get grey lines during conversion.

  • Converting PDF/A to PDF while combining images

    Thanks in advance for your assistance!
    I have a quantity of PDF/A that I need to convert to standard PDFs. However, here's the wrinkle: each file has separate images that are layered over each other. I really need one image that has all the separate images combined. Further information: there's embedded text that needs to be preserved.  An example image is here.  An example of what it needs to look like is here.
    How do I do this in Acrobat Pro XI? I've tried a bunch of different things but had no success. I was hoping someone with more experience has some suggestions.  Thanks!

    Well, the situation is this. We have an OCR program that reads tiffs of historic newspapers and makes PDFs of them. Then we have another piece of software that creates an XML (containing the text and related metadata) and PNG for screen display using the PDF as the source. Then these are ingested into a third software package that makes the newspaper pages searchable and displays the PNG via the web. It then offers the PDF as a download. 
    This works for us BUT we upgraded the OCR program and accidentally changed from PDF to PDF/A. For whatever reason the PDFs output with a single image but PDF/A takes any pictures or drawings and makes the separate image layers while "cutting" the pictures out of the main image.  The software that creates the XML can only process the first image it finds in the PDF. We didn't detect the change until we had OCRed about 30,000 pages.
    We unfortunately pay per page for the OCRing. So I'm hoping to fix the incorrect files rather than going back and re-OCRing the whole batch and have to pay again on the same pages.  We corrected the process and now PDFs come out of the OCR with just one image. So moving forward we're fine.
    So that's why I'm trying to find a way to flatten the images.

  • If you change the image mode of this image from 8-bit RGB image to Grayscale mode while in PSCS – what will the new Pixel Count be?

    If you change the image mode of this image from 8-bit RGB image to Grayscale
    mode while in PSCS – what will the new Pixel Count be?

    If you mean by Pixel count the number of pixels, this will not change. The image will have the same size thus the same number of pixels.

  • How to convert all white - alpha for vector image?

    I'm attempting to make a new font. Currently I've been saving all the png -> vector images that I work with as .AI files, so that I can import them into my font program later, and they open fine in illustrator. The problem is, I usually save my vector images with a white background instead of alpha. Now, I need to replace white with alpha, but I can't find a magic wand in illustrator . Any help?

    function(){return A.apply(null,[this].concat($A(arguments)))}
    I only knew the most fundamental differences between raster and vector: that raster images are saved in dots while vector images are saved in, at the simpliest, lines.
    Not "dots";  pixels. Pixels are simply color values. That's all. Raster programs arrange color values in a rectangular grid of same-size rectangles (usually squares).
    Not "lines"; paths. Paths are discrete individual objects. Paths are stacked, independently moved, freely arranged, scaled, filled, stroked, and otherwise manipulated as individual objects.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    But I'd have thought there was a way to quickly delete the white lines
    There is no "vector image" with a background. Where there are no objects, there is no "background." If a path is there, regardless of whether it has a white fill, a white stroke, or fill(s) and/or stroke(s) of any other color or no color at all, the path is there and can be deleted. (Again, there is no substitute for learning to use the program from the documentation.)
    Technically, paths are mathematically-defined curves. So even a "straight line" is a path, and is technically a curve. The specific kind of mathematically-defined curve used in programs like Illustrator is called a Bezier curve.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    I have no idea how hard it is to create a vector image from scratch.
    It's not rocket science. Anyone can learn it. But again, you have to learn it. There is no substitute for learning to use the program from the documentation.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    I myself am mostly a newbie in both hemispheres of the graphic design world.
    It shows. And there's certainly nothing wrong with that. We all started as beginners. I'm not trying to belittle you: I'm offering you sound advice that will serve as a very valuable shortcut to becoming more than a beginner (if you will accept it) without an unnecessary amount of fumbling around with bad practices.
    Just don't ever claim to a client or in a job interview to know anything at all about any mainstream general-purpose vector drawing program (of which Illustrator is just one) until you are proficient at drawing Bezier curves. That's prerequisite. It's lesson one in chapter one. Might as well start there. Start at the correct beginning and you'll know all the answers to the questions you have asked in this thread. Your understanding of "background" and things like why a region with no objects is not the same thing as an alpha channel in a raster image will come very early if you just start at the beginning. You've got to learn the lay of the land. Start at the beginning.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    In any case, I use a program called vectormagic that does the work for me pretty well, so you might want to check it out.
    Trust me; I'm familiar with it. It's just another autotrace program. I know what it does. I know how "well" it does it. Everything I said in the previous post stands.
    Vector drawing programs are not the kind of program you learn by just launching it and poking around. Not if you want to avoid endless confusion and frustration. Asking random questions in an online user forum (in which wrong "answers" are just as common as right answers) everytime you encounter a point of confusion is just as inefficient. Read the documentation.
    JET

  • Convert colour images to grayscale images & get pixel data from them

    Is the code below correct to convert colour images to grayscale images in Java?
    public void convertToGrayscale (String sourceName,String destName) throws Exception {
    JPEGImageDecoder decoder=JPEGCodec.createJPEGDecoder(new FileInputStream(sourceName));
    JPEGImageEncoder encoder=JPEGCodec.createJPEGEncoder(new FileOutputStream(destName));
    BufferedImage sourceImg=decoder.decodeAsBufferedImage();
    BufferedImageOp op =new ColorConvertOp(
              ColorSpace.getInstance(ColorSpace.CS_GRAY),null);
         BufferedImage destImg = op.filter(sourceImg,null);
    encoder.encode(destImg);
    decoder = null;
    encoder = null;
    When I get grayscale images from the code below, I would like to access the pixels of those images. So I tried to do:
    byte[] dd=((DataBufferByte)mImage.getRaster().getDataBuffer()).getData();
    BUT the data result array is not 0-255. Could anyone suggest how to obtain pixel data from grayscale images?
    In case that my code shown is not correct or suitable, please give your advice. What I would like to do are in the steps as follows:
    1 change 100*70 jpeg-images to 100*70 grayscale images.
    2 create two dimensional array of pixel data (example [100][70]) from converted images. The number in the array should be between 0-255, right??? And 0 refers to black colour and 255 refers to white colour???
    I am confused about grayscale images. Please help.
    Thank you so much

    I am not sure i understand what is the problem exactly.
    Structure of DataBuffer is described by SampleModel used by same Raster
    object. E.g. it might be 1 byte per xipex or 4 bytes per pixel.
    In your example convertToGrayscale saves images to file as JPEG and
    it seems you later read it back. It is possible what image you read back
    is not greyscale but ARGB and data buffer has different format.
    Technically, if you just need level of grey you may simply
    call getRGB on your output image. Grey is uniform mix of R, G and B.
    Also, instead of ColorConverOp you may dimply create output image of
    grayscale type and draw your color input image with drawImage().
    If none of these helps please try to provide more details.

  • Convert cmyk image to grayscale within Illustrator

    Now that we can finally change the color of grayscale images, it would be nice to change a cmyk image to grayscale.
    EDIT: I just remembered you can with Adjust Color Balance, oops!

    1) select all
    2) edit -> convert to grayscale

  • Converting PDF to grayscale

    I am using Adobe CS 3, Acrobat 8 Professional, on Mac OS 10.4.11
    I am trying to convert a full color PDF document to grayscale. I tried to click Advanced > Print Production > Convert Colors and then Grayscale, but it is not working.
    I tried clicking Print and then choosing a PDF option, but it is taking unreasonably long and not finishing.
    So how can I convert it to grayscale?

    Hi,
    I had some trouble with this same issue of converting a color pdf to grayscale. I realized that in my particular pdf, just using the Tools/Print Production/Convert Colors function was not enough. Somehow there were extra spot colors inadvertently added to the file. Here are the steps to follow to make sure this works correctly if you are wanting to convert the entire pdf file to a grayscale image:
    (I am using Acrobat 7.0.9 on a Mac OS X, 10.4.11 system)
    1.) In your pdf file go to Tools/Print Production/Ink Manager click on the bottom left corner box that says (Convert all spots to process). Click okay.
    then
    2.) Go back to Tools/Print Production/Convert Colors. Click on (Device Gray: Convert) Action: Convert. Profile: Select your profile of choosing....for me it was 10% Dot Gain way at the bottom). Convert Pages: All. Conversion Options: Don't Embed Profile. Check box that says, Preserve Black Objects. Click okay.
    This should resolve any problems with those extra colors that will not convert to grayscale since they are assigned as spot colors.
    Hope this helps. Let me know if this works for anyone. just tried it once.
    Good luck!
    Janell

  • Preserve Resolution while scaling?

    Smart-Object layers are ruining the quality of my work when scaling up.
    I create 16-bit style animation where you can see the pixel jagged edges (think Street Fighter 2 look) using Photoshop.  One of the cool tricks I learned was that rather than working at full resolution (1920 X 1080), was that I could work at 1/10th the size and do it in 1/10 the time.
    That's because when working at full size, I have to use the grid feature and paint in each grid box to mimic a zoomed in pixel.
    But working small, I simply use the pencil tool at 1px, and scale up using Nearest Neighbor, which preserves the hard edges.  A brilliant time saving feature which allows me to focus on drawing the whole picture and not on filling in boxes, which is tedious at best.
    The problem occurs when I work in CS4's animation timeline mode when I try to convert Image Size.
    Normal layers preserve their hard edges when using the Nearest Neighbor method of re-sampling.  Yet video layers must be converted to smart object layers in order to be resized.  Regardless of whether I convert it to a smart object layer during the resizing process (which it does after a warning pop-up) or before I resize, the smart-object/video-layers appear fuzzy while the normal layers preserve their original hard-edge quality.
    Why is that and is there a work around?  I'd hate to have to re-animate everything using the tedious gridding technique.
    Thanks!

    Thanks for the feedback.  I'll give it a shot and even try scaling each frame up as a normal frame and then copy/pasting into the upscaled version.
    And After Effects is great for tweening animation, but not so much for traditional/cartoon animation.
    Something like this requires drawing each new frame, and Flash is limited by the "vector look" :
    http://vimeo.com/11315189 (made entirely in Photoshop by Kris Anka)
    Photoshop should definitely consider enlisting the Flash team to better it's timeline abilities as well as fixing this basic issue of upscaling video layers (by not treating it like a video layer and instead looking at it like normal layers viewed with a time dimension).
    Thanks again!

  • Converting Images to CMYK for Print Publication

    When in my workflow should I be converting images to CMYK for print publication?
    Currently, I shoot RAW photographs with my DSLR in Adobe RGB, import the images into Photoshop for manipulation and then convert the final, sized image to CMYK before placing it in my Indesign document. Before going to print, I convert my files to PDF using the [PDF/X-1a:2001] preset. I use a calibrated system with a profile set for my monitor.
    Since many of my pictures have shades of green, I'm often disappointed with the conversion to CMYK because I lose saturation and brightness. Am I doing anything wrong? Is there a better way of preserving the quality of colour in my images when going to a commercial printer?

    To see in InDesign what color shifts will occur, use View=>Proof Colors.
    I would also recommend View=>Overprint Preview.
    Yes there are color shifts when converting RGB to CMYK, but those are due to the fact that the gamut of CMYK is significantly less than AdobeRGB or even sRGB. The same color shifts going to CMYK will occur whether you convert the image in Photoshop or in InDesign during PDF export or at the RIP.
    Keeping the color in ICC color managed RGB has the advantage that last minute changes can be made as to what CMYK printing conditions are used, i.e. all CMYK is not the same. Furthermore, if you convert RGB to CMYK early in the workflow, you lose the ability to maintain the color gamut for display of the PDF as well as for printing to high fidelity color devices, i.e., offset or digital (especially inkjet) devices that have extra colorants such as light cyan, light magenta, orange, and/or green to dramatically expand the gamut. Once you lose the gamut in your imagery via conversion to CMYK, you can't go back.
              - Dov

  • Problem while Converting TiFF to PDF using OCR

    Hi,
    We have installed Adobe LiveCycle8.2 PDF Generator ES trail version, Acrobat Pro Extended 9.0.
    OS: Windows XP Service Pack3,
    App Server: WebSphere 6.1.0.19
    DB: SQL Server 2005 SP2.
    We are getting following error while converting TIFF images to PDF Using OCR.
    Error message on AdminUI screen:
    "Error Code:1000
    Error Message: ALC-PDG-001-000-Conversion failed because of an exception. Connection to failed service."
    Error messages in server log file:
    [10/10/08 18:16:50:015 IST] 00000043 ProcessResour W com.adobe.service.ProcessResource$ErrorReaderThread run BMC024: Service Native2PDFSvc: Process ProcessResource(name=pdfgen.exe,pid=0) terminated abnormally with error code {3}
    [10/10/08 18:16:50:218 IST] 00000035 ProcessResour A com.adobe.service.ProcessResource startProcess BMC505: Service Native2PDFSvc: Starting native process with command line "C:\\Program Files\\ibm\\WebSphere\\AppServer1\\profiles\\AppSrv01\\installedApps\\HDDLGSDMNK8897Node0 1Cell\\adobe\\server1\\Native2PDFSvc\\bin\\dll\\pdfgen.exe" PDF-NAf6c310002 -beginExecutable "C:\\Program Files\\IBM\\WebSphere\\AppServer1\\java\\jre\\bin\\javaw.exe" -endExecutable -Xmx64m -cp "C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-appmon.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-appmondata.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-bslj.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-csa.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-generatepdf-client.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-pdfg-common-jaxb.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-pdfg-common.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-pdfg-commonbmc.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-pdfg-idl-bmc-websphere.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-pdfg-idl-bmc.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/adobe-utilities.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/avalon-framework-4.1.5.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/comfyj-2.4.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/jacorb.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/jaxb-api.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/jaxb-impl.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/jaxb-libs.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Cell/a dobe/server1/Native2PDFSvc/bin/jniw2.9.5_acrobat1.1.jar;C:/Program Files/ibm/WebSphere/AppServer1/profiles/AppSrv01/installedApps/HDDLGSDMNK8897Node01Ce

    Error message continuation:
    [10/10/08 18:16:50:296 IST] 00000044 SystemOut O Command line '"C:\Program Files\IBM\WebSphere\AppServer1\java\jre\bin\javaw.exe"'
    [10/10/08 18:16:50:437 IST] 00000035 ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "doRequiresNew" on bean "BeanId(LiveCycle8#adobe-dscf.jar#EjbTransactionBMTAdapter, null)". Exception data: java.lang.IllegalStateException: Connection to failed service.
    at com.adobe.service.ResourcePooler.allocateResource(ResourcePooler.java:87)
    at com.adobe.service.ConnectionFactoryManagerPeer.getConnectionResourceFromPool(ConnectionFa ctoryManagerPeer.java:79)
    at com.adobe.service.J2EEConnectionFactoryManagerPeerImpl.getConnection(J2EEConnectionFactor yManagerPeerImpl.java:84)
    at com.adobe.service.ConnectionFactoryRmiAdapter.getConnection(ConnectionFactoryRmiAdapter.j ava:53)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:615)
    at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:727)
    at java.security.AccessController.doPrivileged(AccessController.java:241)
    at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:725)
    at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1123)
    at $Proxy80.getConnection(Unknown Source)
    at com.adobe.service._ConnectionFactoryRemote_Stub.getConnection(_ConnectionFactoryRemote_St ub.java:58)
    at com.adobe.pdfg.callbacks.NativeToPDFTransactionCallback.convertToPdf(NativeToPDFTransacti onCallback.java:185)
    at com.adobe.pdfg.callbacks.NativeToPDFTransactionCallback.doInTransaction(NativeToPDFTransa ctionCallback.java:163)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doRequiresNew (EjbTransactionBMTAdapterBean.java:218)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EJSLocalStatelessEjbTransactionBMTAdapter_ 3af08fdf.doRequiresNew(Unknown Source)
    at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:133)
    at com.adobe.idp.dsc.transaction.impl.DefaultTransactionTemplate.execute(DefaultTransactionT emplate.java:79)
    at com.adobe.pdfg.BMCCaller.invokeInSMT(BMCCaller.java:769)
    at com.adobe.pdfg.Native2PdfCaller.callNativeBMC(Native2PdfCaller.java:779)
    at com.adobe.pdfg.Native2PdfCaller.createPDF(Native2PdfCaller.java:298)
    at com.adobe.pdfg.GeneratePDFImpl.createPDFCommon(GeneratePDFImpl.java:342)
    at com.adobe.pdfg.GeneratePDFImpl.createPDF(GeneratePDFImpl.java:172)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:615)
    at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)
    at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doBMT(EjbTran sactionBMTAdapterBean.java:197)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EJSLocalStatelessEjbTransactionBMTAdapter_ 3af08fdf.doBMT(Unknown Source)
    at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:95)
    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:55)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:102)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
    at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)
    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:91)
    at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:21 5)
    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:57)
    at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
    at com.adobe.aes.web.create.CreatePDFAct.createPDF(CreatePDFAct.java:383)
    at com.adobe.aes.web.create.CreatePDFAct.createPDF2(CreatePDFAct.java:402)
    at com.adobe.aes.web.create.CreatePDFAct.execute(CreatePDFAct.java:174)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at com.adobe.aes.web.AesActionServlet.service(AesActionServlet.java:63)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1095)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1036)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
    at com.adobe.idp.um.auth.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:154)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java: 190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:832)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:565)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.jav a:90)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)
    at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:118)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink .java:458)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink .java:387)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConn ectionInitialReadCallback.java:214)

  • "Preserve alpha transparency" with flattening for PDF

    For what reason, in Illustrator CS3, is the option for preserving alpha transparency not available in the PDF flattener, but only under the object menu by choosing Flatten Transparency...
    The reason i'm asking, is because when using some effects and spot colors, the background of the flattened object becomes a white bounding rectangle that overlaps other objects. I can workaround this by saving a copy, flatten all objects and then save a PDF. But isn't it possible to directly save a correctly flattened PDF from the original unflattened file with spot colors, without having to flatten the objects manually?

    here is an example, when I upload this image to the printers I loose the white background and eveything on the bottom of the card is pushed up. The same thing happens with the brochure I have. I can't upload that because this site will not allow it.

Maybe you are looking for