Remove flate compression from pdf

Hi, i have a pdf file generated by a MicroStrategy tool
The pdf file has flate compression in it
When i open this file in wordpad i see this text:
/Filter /FlateDecode
The receiver cannot accept pdf files that has the above compression
How can i remove Flate compression from this pdf file?
Also, what is Flate, Inflate and Deflate with respect to pdf compression?
If this is not the right forum for this question, please guide me to the right forum
Thanks
-srinivas

You may try a forum for the MicroStrategy tool. It isn't a Adobe product.

Similar Messages

  • [solved] How to remove specific pages from PDF file?

    I'm looking for a way to remove few pages from PDF file.
    Last edited by delor (2008-07-04 10:28:22)

    To remove first page I did this:
    pdftk original.pdf cat 2-end output result.pdf
    Any other propositions ?

  • How remove embedded font from PDF

    When I print to PDF on Mac OS 10.6.8 by default embed fonts to PDF-file. It add unnecessary bites to PDF-file (the file is huge size).
    How to remove this option of fonts embedding? Or how remove embedded font from PDF file?

    After opening dozens and dozens of linked files,I finally found the offending "empty line of text" in one of the AI files I placed in the INDD file. Open > Select All.... then check the font panel. With mixed fonts, it was empty, but if everything was the correct font, it was filled in. It was just one AI file.
    I want to thank you all for your great ideas and for sharing your experience. Onward, now.

  • Remove ALL Images from PDF Export?

    I'd like to remove ALL images from a PDF export (Indesign CS6), with the intention of having the smallest file size possible for review. All the images are Photoshop PSDs.
    I have created a PDF Preset (PDF 1.7) that omits EPS, PDF and Bitmap.
    That covers any PSDs that contain opaque backgrounds, i.e. are considered to be non-transparent. However, any PSDs that do NOT contain such backgrounds still appear in the exported PDF. I assume they are NOT considered to be Bitmaps?!?
    I've gone for maximal compression of images (in the Preset) also just to see how small I can get the file, but it's still over a meg, and I'd really like even smaller. I live in a rural part of England where net access is painfully slow, and even a few meg of data takes far too long to upload, not to mention the constant drop-outs. Consider further that my document is likely to grow by several orders of magnitude and hopefully you can see why I'd like to sort this issue out as soon as possible.
    I've not done any scripting but assume it would be trivial to hide images with a script. However, I'm not sure how such a script might know how to make visible only the images that were previously hidden by the script. Obviously I would not wish to unhide images that must stay hidden. Maybe some form of image/object tagging, if that's even possible in this product, i.e. tag them "temp hide" on first pass of the script, and so forth.
    Any suggestions much appreciated.
    Regards,
    James

    @James – to mark the container frames of the nonprinting images by a fill color, you could add the following lines of code in the for loop:
    allGraphicsArray[n].nonprinting = true;
    //The parent of the graphic is the container that holds it.
    //We could use it to fill it with a tint of e.g. 20% of black:
    allGraphicsArray[n].parent.fillColor = "Black";
    allGraphicsArray[n].parent.fillTint = 20;
    But this approach will add a new problem for images, that only use a portion of the holding graphic frame. Or are only partly visible due to a clipping path or a clipping mask or totally transparent areas due to transparent pixels.
    Already colored backgrounds will be recolored…
    @Sandee – I see the advantage of the PostScript to Distiller way in this situation, but there are two disadvantages:
    1. Live transparency will be flattened (could be no issue in this use case, but you never know).
    2. The gray area with the big X will be applied also to parts of the images where no pixels are present (transparent pixels in PhotoShop or TIFF files).
    To work around all these issues we need a more complex script that is building a  path object around the transparent parts of an image or using an applied clipping path for that purpose and fill that with a gray tint (and maybe with an X).
    Here some screen shots to illustrate the problems (with or without using PostScript/Distiller):
    1. Original set up:
    One placed PhotoShop file with transparency stacked upon the text frame.
    The image inside its holding frame is selected.
    The visibility of one of its layers depicting a second chair on the left side is switched off.
    2. The same setup in a different view:
    3. After running the script with the two additional lines of code:
    Using the PostScript method would do nearly the same plus adding a cross using the  area of the selected image.
    Uwe

  • Remove all tooltips from PDF Fom in Acrobat 9 Pro

    I am trying to convert an Excel form into a PDF form. There are a couple of hundred fields in the form. By default, when I convert the excel file to a PDF form, Acrobat names all the fields automatically and this name is added to the tooltip. So when mouse hovers over the fields the tooltips show on all fields (e.g. for the column "Day" fields will show tool tips "Day_Row1", "Day_Row2" and so on)
    I know I can remove the tool tips by going to the field's properties and deleting the text in the tooltip box, but I do not want to do this for 200 fields one at a time.
    Is there a way I can tell the Acrobat to not fill in the Tooltips automatically when the form is converted from Excel file?
    Thanks

    I am creating the PDF Form using Acrobat 9 Pro. If I make changes in the preferences to not display the tooltips, it only disables the display of the tooltips in Acrobat on my computer. I want the tooltips to be cleared or not display on all PDF viewers by default.

  • Removing navigation bar from PDF in CE6

    I am writing an application for Windows CE6 and I am trying to remove the navigation bars from the PDF presented to the user.  The device is loaded with Adobe Reader 9.0.  I was told that there is a registry setting that I can change to achieve this functionality but I cannot seem to find it.  Could someone help shed some light on my situation?

    The registry value name is bExternalTabs.  It should be set to a 0 to remove the "Navigation Panel Buttons" and  should be removed to enable the functionality.  It is placed in the AVGeneral/cDockables registry key.  I figured this out by opening a pdf with the Navigation Panel Buttons presented to the user.  Then I exported the registry, removed the NPB and exported the registry again.  Doing a diff on the two exports revealed what I needed to change.

  • Remove Header Information from PDF Report

    Is there a way to not have the Filters and Variables Information show on a report that is emailed from the BeX Broadcaster as PDF document? We are having issues with the information being displayed having gone from being single spaced to having large gaps between the lines. Or has anyone else had a similar issue and knows how to remove the extra lines?

    Hello John,
    In TX RSCUSTV27 it is possible to maintain default templates.
    For broadcasting, the default template is 0QUERY_TEMPLATE_BROADCAST_PDF.
    The template can be edited so filters and variables can be removed.
    BR
    Ondrej

  • Removing printer offsets from PDF pages

    I accidently set up a printer page offset when creating PDF pages from Word Perfect X3. Is there a way to remove the offset, or do I need to go back to the original WP pages (which I can't find!)?

    I recreated a page and made sure there were no offsets listed. The PDF page still prints offset. I found sources to recreate the page, displayed codes, and removed anything marked as offset. There is still an offset to the left when pre-print displaying either the source page or the PDF version.

  • Remove Bogus Font from PDF?

    I create the quarterly PDF of Hinduism Today magazine, on Macs, in InDesign, individual articles are exported to PDF as spreads and assembled in Acrobat to produce a single PDF of the entire magazine: nothing new there...
    Now, my final PDF is showing a "rogue" copy of a font we tinkered with ourselves "
    "RelatoD,Bold"  as TrueType, but not embedded;
    we have others "RelatoD-Bold"   all of which are embedded
    If I open all the source PDF (individual articles) all versions of RelatoD-Bold appear as embedded and I cannot spot the document containing "RelatoD,Bold"  
    My outside shop Mac beta testers say the PDF works perfectly. Acrobat reader on Mac is forgiving. I don't think the font is even in use.  But Windows users are getting an ugly font cannot be found or created message. If they dismiss that dialog, the PDF opens and appears fine. There is not a single instance of the "rogue" font showing any visible change in the PDF document.
    Obviously I need to track this down, but our production schedule is running behind. Is there way I can simply "zap"  delete the rogue font in Acrobat Professional? In the PDF? I don't think we will see a single problem in the document. This seems to be some kind of font "artifact/gremlin" that was introduced, but we don't know how, or from where... and the R & D to track it down is going be "painful" and time consuming.

    Larry, excellent, thanks for reminding me of that option. We have done that before when the document starts to show signs of "wierdness" and looks like it is about to explode (smile) export .inx and rebuild before you lose it completely.
    The challenge will be : which document from all the articles carries the rogue font? I have no way to analyze it.
    hmm. I guess I could boot Parallels and then open each individual PDF (made from individual articles) until I found it.
    Meanwhile, I was overly jubilant yesterday. After I ran the PDF thru PDF optimizer, looking at Document Properties I did not see the roque font, I thought Ah ha! Solved! I then pushed an update to our web server, sent the URL to Windows beta test group  and by the afternoon they were telling me the PDF *still* threw the warning dialog about missing font.
    At our staff meeting (we are mac fanatics here) we thought not a big deal, in the Windows world users are faced with nasty dialogs all the time, I won't have time to go solve this before we go live. Our only regret is being unable to program the dialog box to say "Sorry cannot find or create RelatoD-Bold. It works on Apple. Get a Mac!"

  • Reimport form or remove submit feature from pdf

    I have a form that has nearly 1000 fields that I saved over the original pdf so when I went to edit it I only have the form version that was created with Forms Central. Are you telling me that I can't reimport this form into Forms Central? I have to recreate this form with over 1,000 fields that took about 8 hours to complete??!!

    Did you design the form in FormsCentral or did you import the original PDF into FormsCentral.
    Unfortunately right now you can't import a FormsCentral PDF in FormsCentral (but this will change very soon).
    With the new feature coming soon you will be able to import FormsCentral PDF. If the form was designed in FormsCentral you won't be able to modify it in FormsCentral after the import as it will behave like any other PDF import (where you can only decide where to put the submit button).
    In the mean time you can try these steps (if you have Acrobat) to fix your issue
    http://forums.adobe.com/message/5490476#5490476
    Gen

  • Remove an object from PDF-generated XML file

    Hi,
    In a stage of user workflow of my PDF, the user presses a submit button that sends XML data to an address. There's an image field that has hundreds of lines of XML code that has no need to sent.  In fact, by the time this submit button is pressed, the image field is already "hidden", but of course it remains on the form.
    Is there any sort of visibility or access property that will supress an object enough that it doesn't transfer with XML?  How about dynamically deleting a field on the user-end?

    Hi,
    One solution, use an ImageField object instead of an Image object. Then go to the Object > Binding palette and for the binding select No Data Binding (or None, depending on your version of LC Designer).
    Because you are now using an ImageField you will need one line of code in it's docReady event (JavaScript):
    this.access = "readOnly";
    The lines in the XML data file contain the image in Base64 format.
    Hope that helps,
    Niall

  • Rich Black removal from PDF

    Hi Team,
    The PDF which we are supplying to prointer is reporting issue of rich black color used. Is there any way we can remove rich black from PDFs using acrobat professional.
    Thanks in Advance!

    Here's a previous discussion of the topic:
    http://forums.adobe.com/thread/851346?tstart=0
    And here's another helpful answer from another forum:
    http://acrobatusers.com/forum/printing-prepress/how-keep-total-area-coverage-under-240

  • I cannot remove embedded barcode from the image. Due to saving compression.

    Hi guys,
    I recreate a thread to prevent confusing on my previous one. Please only reply to this thread thanks.
    Ok, for a start I will give some general description about the application I made.
    I had some problem with the image being compressed while it is saved.
    Because saving an image will cause it to compress and had its pixel valued changed, I could not successfully remove the bardcode that is embedded inside a image(although some of the pixel value will be returned to original normally). I had placed my code below and will accept any opinion that will help me solve the removal of barcode problem.
    What my application does is actually very simple. It will take the pixel value of the area inside the image that will be embed with the barcode first, then it will take the pixel value of the barcode and use the formula (1-alpha * Image pixel value) + (alpha * barcode pixel value) = new pixel value which will contain the barcode that had been embedded inside. The formula works great but when I saved the image the pixel value will change due to compression. On the removal of barcode my application will read every pixel value from the image embedded with barcode (only the area with barcode embedded), then it will go on to read every pixel value of the barcode used for embedding and then use the formula (Embedded image pixel value - (alpha * Barcode pixel value) - (1 - alpha) = original pixel value. But due to the reason that compression will change some of the pixel inside the saved image to drop in its value, the result from the removal formula will be negative and hence caused my result image to become wierd as it will red colors instead of original color on some of its pixel. I tried saving under PNG format which people said to be lossless compression but the result is still the same.
    So I need to ask you guys for opinion or help me find the part where I actually did wrongly and caused the image pixel value to change.
    Thanks. Please proceed and read below for the codes that I used. It is messy and I will sort it out later.
    When alpha is set as 1 the barcode will appear to be overwrite onto the image. But when alpha is set as 0.1 the barcode will appear to be transparent and almost seems to be not there on the image when embedded.
    This is the code I used to retrieve image pixel when embedding:
    public static int[] getImagePixelValue(BufferedImage image, int x, int y){
              //Create an array to store image RGB value
              int[] imageRGB = new int[3];
              //Get height and width from input image
              int imageWidth = image.getWidth();
              int imageHeight = image.getHeight();
              //Get raw RGB value from image
              int imageValue = image.getRGB(x, y);
              //Convert image raw RGB value
              int imageRed = ((image.getRGB(x, y) >> 16) & 0xff);
              int imageGreen = ((image.getRGB(x, y) >> 8) & 0xff);
              int imageBlue = image.getRGB(x, y) & 0xff;
              //Input the converted RGB value into the array
              imageRGB[0] = imageRed;
              imageRGB[1] = imageGreen;
              imageRGB[2] = imageBlue;
              /*//Print out the pixel value to check
              System.out.println("Image red pixel: "+imageRGB[0]);
              System.out.println("Image green pixel: "+imageRGB[1]);
              System.out.println("Image blue pixel: "+imageRGB[2]);*/
              //Return image RGB value
              return imageRGB;
    }This is the code I used to retrieve barcode pixel for embedding:
    public static int[] getWatermarkPixelValue(BufferedImage watermark, int x, int y){
              //Create an array to store watermark RGB value
              int[] watermarkRGB = new int[3];
              //Get height and width from input watermark
              int watermarkWidth = watermark.getWidth();
              int watermarkHeight = watermark.getHeight();
              int watermarkValue = watermark.getRGB(x, y);
              //Convert watermark raw RGB value
              int watermarkRed = ((watermark.getRGB(x, y) >> 16) & 0xff);
              int watermarkGreen = ((watermark.getRGB(x, y) >> 8) & 0xff);
              int watermarkBlue = watermark.getRGB(x, y) & 0xff;
              //Input the converted RGB value into the array
              watermarkRGB[0] = watermarkRed;
              watermarkRGB[1] = watermarkGreen;
              watermarkRGB[2] = watermarkBlue;
              /*//Print out the pixel value to check
              System.out.println("Watermark red pixel: "+watermarkRGB[0]);
              System.out.println("Watermark green pixel: "+watermarkRGB[1]);
              System.out.println("Watermark blue pixel: "+watermarkRGB[2]);*/
              //Return watermark RGB value
              return watermarkRGB;
         }This is the code I used for merging the image pixel and barcode pixel to get the embedded pixel value:
    public static int[] getEmbeddedPixelValue(int[] imagePixelValue, int[] watermarkPixelValue, double alpha){
              //Create a object to hold embedded pixel value
              int[] embeddedRGBValue = new int[3];
              //Change image pixel value into double calculating equation
              double imgRedValue = (double) imagePixelValue[0];
              double imgGreenValue = (double) imagePixelValue[1];
              double imgBlueValue = (double) imagePixelValue[2];
              //Change watermark pixel value into double calculating equation
              double wmRedValue = (double) watermarkPixelValue[0];
              double wmGreenValue = (double) watermarkPixelValue[1];
              double wmBlueValue = (double) watermarkPixelValue[2];
              //Equation for embedding image and watermark together
              double embeddedRed = ((1.0 - alpha) * imgRedValue) + (alpha * wmRedValue);
              double embeddedGreen = ((1.0 - alpha) * imgGreenValue) + (alpha * wmGreenValue);
              double embeddedBlue = ((1.0 - alpha) * imgBlueValue) + (alpha * wmBlueValue);
              //Changing embedded value from double to int
              int embeddedRedValue = (int) embeddedRed;
              int embeddedGreenValue = (int) embeddedGreen;
              int embeddedBlueValue = (int) embeddedBlue;
              //input the embedded RGB value into the array
              embeddedRGBValue[0] = embeddedRedValue;
              embeddedRGBValue[1] = embeddedGreenValue;
              embeddedRGBValue[2] = embeddedBlueValue;
              //Return embedded pixel value
              return embeddedRGBValue;
         }This is the code where I used for the embedding process:
    else if(target == embedButton){
                   String xCoordinate = JOptionPane.showInputDialog(embedButton, "Enter coordinate X", "When you want to embed the watermark?", JOptionPane.QUESTION_MESSAGE);
                   String yCoordinate = JOptionPane.showInputDialog(embedButton, "Enter coordinate Y", "When you want to embed the watermark?", JOptionPane.QUESTION_MESSAGE);
                   int xValue = Integer.parseInt(xCoordinate);
                   int yValue = Integer.parseInt(yCoordinate);
                   int wCounter = 0;
                   int hCounter = 0;
                   //Create file object to be used in embedding and removing watermark
                   File inputImage = new File(imagePath);
                   File inputWatermark = new File(watermarkPath);
                   //Convert string into double for calculation of embedded pixel value
                   try {
                        alphaDouble = Double.valueOf(alphaValue).doubleValue();
                   catch (NumberFormatException nfe) {
                        System.out.println("NumberFormatException: " + nfe.getMessage());
                   try{
                        //Define selected image as testPic and make java read the file selected
                        BufferedImage image= ImageIO.read(inputImage);
                        BufferedImage watermark= ImageIO.read(inputWatermark);
                        BufferedImage testing;
                        //Get height and width value from the selected image
                        int imageWidth = image.getWidth();
                        int imageHeight = image.getHeight();
                        //Get height and width value from the selected barcode
                        int watermarkWidth = watermark.getWidth();
                        int watermarkHeight = watermark.getHeight();
                        int totalWidth = watermarkWidth + xValue;
                        int totalHeight = watermarkHeight + yValue;
                        //Use nested for loop to get RGB value from every pixel that the barcode will be embedded in the selected image
                        if(totalWidth <= imageWidth && totalHeight <= imageHeight){
                             for (int h = yValue ; h < totalHeight; h++){
                                  for (int w = xValue; w < totalWidth; w++){
                                       int[] imagePixelValue = getImagePixelValue(image, w, h);
                                       int[] watermarkPixelValue = getWatermarkPixelValue(watermark, wCounter, hCounter);
                                       int[] embeddedPixelRGBValue = getEmbeddedPixelValue(imagePixelValue, watermarkPixelValue, alphaDouble);
                                       setRed(image, w, h, embeddedPixelRGBValue[0]);
                                       setGreen(image, w, h, embeddedPixelRGBValue[1]);
                                       setBlue(image, w, h, embeddedPixelRGBValue[2]);
                                       wCounter++;
                                       if(wCounter == watermarkWidth){
                                            wCounter = 0;
                                            hCounter++;
                        else{
                             JOptionPane.showMessageDialog(embedButton, "The watermark cannot be embedded at the coordinates.");
                        tempImage = image;
                        imageIcon = new ImageIcon(tempImage);
                        labelImage.setIcon(imageIcon);
                        imagePanel.add(labelImage);
                        container.add(imagePanel, BorderLayout.CENTER);
                        setVisible(true);
                        System.out.println("Embedding completed");
                   catch(Exception errorEmbedding){
                        //If there is any error, the try and catch function will tell you the error
                        System.out.println("The following error occured: "+errorEmbedding);
              }This is the code I use to save the image that had been embedded with the barcode:
    else if(target == saveAction){
                   JFileChooser chooser = new JFileChooser();
                   FileNameExtensionFilter filter = new FileNameExtensionFilter("JPG & GIF Images", "jpg", "gif");
                   chooser.setFileFilter(filter);
                   chooser.setCurrentDirectory(new File("."));
                   int returnVal = chooser.showSaveDialog(getParent());
                   if(returnVal == JFileChooser.APPROVE_OPTION) {
                        String name = chooser.getSelectedFile().getAbsolutePath();
                        //Create a string instant to hold outputImage path name
                        String saveFile = chooser.getSelectedFile().getName()+"."+fileType;
                        //Create file output to decide what name will be used to save the file
                        File outputImage = new File(saveFile);
                        try{
                             //Save the file with the name used
                             ImageIO.write((RenderedImage) tempImage,fileType,outputImage);
                        catch(Exception errorSaving){
                             //If there is any error, the try and catch function will tell you the error
                             System.out.println("The following error occured: "+errorSaving);
                   else{
              }This is the code I used for removal process of barcode:
    else if(target == removeButton){
                   //Create file object to be used in embedding and removing watermark
                   File inputImage = new File("removalTesting.jpg");
                   //File inputWatermark = new File(watermarkPath);
                   //Used a defined barcode for testing of removing barcode from embedded image
                   File inputWatermark = new File("barcode.jpg");
                   /*//Convert string into double for calculation of embedded pixel value
                   try {
                        alphaDouble = Double.valueOf(alphaValue).doubleValue();
                   catch (NumberFormatException nfe) {
                        System.out.println("NumberFormatException: " + nfe.getMessage());
                   //Used a defined alpha value for testing of removing barcode from embedded image
                   //alphaDouble = 0.5;
                   //Create x and y value for the starting coordinates of barcode embedded in the embedded image
                   int xValue = 0;
                   int yValue = 0;
                   int wCounter = 0;
                   int hCounter = 0;
                   try{
                        //Define selected image as testPic and make java read the file selected
                        BufferedImage image= ImageIO.read(inputImage);
                        BufferedImage watermark= ImageIO.read(inputWatermark);
                        //Get height and width value from the selected image
                        int imageWidth = image.getWidth();
                        int imageHeight = image.getHeight();
                        //Get height and width value from the selected barcode
                        int watermarkWidth = watermark.getWidth();
                        int watermarkHeight = watermark.getHeight();
                        int totalWidth = watermarkWidth + xValue;
                        int totalHeight = watermarkHeight + yValue;
                        //Use nested for loop to get RGB value from every pixel that the barcode had been embedded in the embedded image
                        if(totalWidth <= imageWidth && totalHeight <= imageHeight){
                             for (int h = yValue ; h < totalHeight; h++){
                                  for (int w = xValue; w < totalWidth; w++){
                                       int[] imagePixelValue = getImagePixelValue(image, w, h);
                                       int[] watermarkPixelValue = getWatermarkPixelValue(watermark, wCounter, hCounter);
                                       int[] removedPixelRGBValue = getOriginalImagePixelValue(imagePixelValue, watermarkPixelValue, alphaDouble);
                                       setRed(image, w, h, removedPixelRGBValue[0]);
                                       setGreen(image, w, h, removedPixelRGBValue[1]);
                                       setBlue(image, w, h, removedPixelRGBValue[2]);
                                       wCounter++;
                                       if(wCounter == watermarkWidth){
                                            wCounter = 0;
                                            hCounter++;
                        tempImage = image;
                        imageIcon = new ImageIcon(tempImage);
                        labelImage.setIcon(imageIcon);
                        imagePanel.add(labelImage);
                        container.add(imagePanel, BorderLayout.CENTER);
                        setVisible(true);
                        System.out.println("Embedding completed");
                   catch(Exception errorEmbedding){
                        //If there is any error, the try and catch function will tell you the error
                        System.out.println("The following error occured: "+errorEmbedding);
              }Sorry if the codes are in a mess, I did not had the time to sort it out yet but most likely do it when I got the removal of barcode done.
    Follow this link to have a look of the result I see in my application when I got the barcode embedded into the image I selected:
    [http://img356.imageshack.us/my.php?image=beforeremovalresultmg2.jpg]
    Follow this link to have a look of the result I see in my application after I got the barcode removed:
    [http://img523.imageshack.us/my.php?image=removalresultmx4.jpg]
    As you can see from the link, after I remove the barcode from the image. Some of the pixel actually went back to normal in the barcode area when the the barcode is embedded into the image. But some pixel in the barcode area had its value changed due to compression when I save the image file I think.
    Anyone can help me find out the problem?
    Thanks.

    KamenRider wrote:
    I suspect the problem lies in the code when I save the image. Because people said that PNG was loseless compression but when I saved in PNG some of the pixel went back to normal while some did not. This is obviously the cause from changing of pixel value when I saved the image.You are almost certainly wrong. This is trivially easy to check. Print out the color of a certain pixel immediately before you save it. Open the saved PNG in your favorite image manipulation program and check the saved value of that same pixel. When you re-load the saved PNG, print out the color again. It should be unchanged.
    Thanks you for trying to help me spot the problem but the formula is correct. The alpha value i used in my application is used to set the transparency of the barcode that will be embedded in the image. Hence, when alpha = 1 the new pixel value should be the barcode value. ^^The formula isn't wrong, it's just not doing what you think it's doing. Remember that you're working with ints here, not floating point numbers, so they have finite precision. When you case from double to int, fractions are dropped. As morgalr pointed out, your formula is:
    (1-alpha * Image pixel value) + (alpha * barcode pixel value) = new pixel value You didn't show us the code for getOriginalImagePixelValue but I imagine it's:
    original pixel value = (new pixel value - alpha * barcode pixel value) / (1 - alpha)On a piece of paper, take alpha = 0.9, image pixel = 17 and barcode pixel = 100. Calculate out what you should get for new pixel value and then calculate what you should get for original pixel value. You will find they don't match.

  • How can I remove a page from a PDF document and save it as a new PDF document?

    How can I remove a page from a PDF document and save it as a new PDF document?

    Tools - Pages - Extract and tick the option to delete the extracted page from the original file.

  • How do I remove password protection from a PDF file in Adobe Reader

    How do I remove password protection from a PDF file in Adobe Reader?

    PDF security can only be implemented or removed using Adobe Acrobat.

Maybe you are looking for

  • Macbook no longer "sleeps" after 'low battery' warning, just suddenly dies

    My macbook (just over a year old) used to give me a warning with 10 minutes left that it would sleep so as my data was not lost, if I didn't plug it in. However, recently, it has stopped doing this - instead of sleeping, if I don't get to a power sou

  • A simple problem (should be)

    I am trying to download Adobe Flash so I can watch DirecTV in Europe. It will not accept my password. I changed the password, still no go. I chatte with an adobe person who reset it twice, gave me a new password that let me log in to Adobe, but it st

  • BEx Reference field problem

    Hi BW Experts, I have created a calculated key field (Z_TOTCNTFLG_1) in a Query using Bex Analyser. The calculated key field simply does a count of a flag field I am extracting into a BW field called 'Z_COUNTFLAG'- this field has a value of 1 in each

  • Printing Issue for Smartform

    Hi All.. The smartform has been created and activated without any Errors. All the data are appearing in the Print Preview in a desired format. But when i take the Print, the icon is not getting printed. Instead of icone being printed, few dark lines

  • Every time I launch iTunes I get message "We could not complete your iTunes Store request. An unknown error occurred (4002)." Anyone know what this is?

    Hi everyone. Every time I launch iTunes I get a message "We could not complete your iTunes Store request. An unknown error occurred (4002)." Anyone know what this is or what I need to do to stop it? Any suggestions much appreciated. Geoffrey