StageWebView - How to prevent stretching of the bitmap obtained through drawViewPortToBitmapData?

I am trying to show the page displayed using StageWebView as a bitmap. As per the documentation we need to use DrawViewPortToBitMapData. While displaying the bitmap in a UIComponent, the image is getting stretched. How can I prevent that?
     bitmapData = new BitmapData(webView.viewPort.width, webView.viewPort.height, false,
     0x000000 );
     webView.drawViewPortToBitmapData(bitmapData);
     webViewBmp = new Bitmap(bitmapData);
     webView.stage = null;
   uiComponent = new UIComponent;
   uiComponent.width=webView.viewPort.width;
   uiComponent.height=webView.viewPort.height;
   uiComponent.addChild(webViewBmp);

If you do not want to programm anything you can just use the plugin part of the itexttoolbox. Tools->Various->IdentifyColorPages.
For java webstart installation go to
http://itext.ugent.be/library/itext.jnlp
It uses the first approach you described.
Best regards

Similar Messages

  • How can I do that the background appears through the person who is on the pic

    how can I do that the background appears through the person who is on the pic

    Hi
    just decrease the opacity of the layer on which you have the person

  • Accidentally exited out of the loading screen after making my purchase, should I retry or how do I check if the payment went through?

    Accidentally exited out of the loading screen after making my purchase, should I retry or how do I check if the payment went through?

    check your account, https://www.adobe.com/account.html

  • How to send messages to the specified user through sap

    how to send messages to the specified user through sap

    Hi Santosh,
    try:
        CALL FUNCTION 'TH_POPUP'
             EXPORTING
                  CLIENT         = SY-MANDT
                  USER           = BNAME "User you want
                  MESSAGE        = MSG "text you want
             EXCEPTIONS
                  USER_NOT_FOUND = 1.
    Regards, Dieter

  • ADF FACES: how to prevent navigation in the UPDATE_MODEL_VALUES phase

    I have some complex cross-field correlations to verify on data submitted. I can't do this in the PROCESS_VALIDATIONS phase, since all the model values are in consistent at this point depending on which component is being processed.
    So, I'm trying to perform the business logic tests in the UPDATE_MODEL_VALUES phase. This is all working well except for one thing. How do I prevent the view from changing in the case that cross-field issues are detected?
    The scenario is that the user has filled out the form and activates some control that would normally navigate the user away from the current view. I detect an inconsistency and need to place a message in the context and prevent the navigation. This is easy if I do this during the PROCESS_VALIDATIONS phase by just throwing a ValidatorException.
    I just can't figure out how to accomplish this in the UPDATE_MODEL_VALUES phase.
    Any suggestions?

    I spoke too soon. Maybe my case is more subtle. I have a page with a af:showOneTab. In one of the showDetailItems, I have this validation occuring. Thus, when the user clicks on one of the tabs, and the current page has a validation error on it, I want them to stay on the current page.
    Calling renderResponse doesn't seem to prevent the change (although a true ValidatorException thrown during the validation phase does).
    So, I'm still stuck with how to prevent the change in tabs when I detect the error in the UPDATE_MODEL_VALUES phase.
    Thanks.

  • How to prevent downgrading of the app in meta package using package versioning feature of package maker tool?

    Hi,
    Created  an installer i.e, meta package using package maker tool. I want  to prevent downgrading of the application or package on the target/installed volume. 
    Problem is, if there is a newer version of app and when I try to install any older version, then it does not throw any error message to the end user and replaces the existing newer version with the older version of app, which should not happen. But, if I check the package version using version comparison of Package  maker tool, that works fine with flat packages i.e, with the .pkg files. So, I need the solution for metapackages(.mpkg) and want to prevent downgrading of app for metapackages. I am not getting any solutions for this. Can someone guide me on this?
    Thanks for the help provided.
     

    Hi,
    Created  an installer i.e, meta package using package maker tool. I want  to prevent downgrading of the application or package on the target/installed volume. 
    Problem is, if there is a newer version of app and when I try to install any older version, then it does not throw any error message to the end user and replaces the existing newer version with the older version of app, which should not happen. But, if I check the package version using version comparison of Package  maker tool, that works fine with flat packages i.e, with the .pkg files. So, I need the solution for metapackages(.mpkg) and want to prevent downgrading of app for metapackages. I am not getting any solutions for this. Can someone guide me on this?
    Thanks for the help provided.
     

  • How to fill values in the system matrix through code

    hi
    All
    i want to fill the system matrix in the sales order in such a way that
    Items will be filled in system matrix in the lost focust event of the Customer Code selection in the Sales order Document
    how can i fill the system matrix through code
    one thing that first column(ItemCode)  of the system matrix column is a Icombbox type
    Now i need to fill out item code using code
    can any one suggest the answer
    thanks in advance

    madhu,
    You need to catch the Validate event, when pVal.BeforeAction = False for form items 4 (CardCode) and 54 (CardName) of the Sales Order form.
    Concerning the form's matrix, you can fill it but you cannot change it (you cannot change the ItemCode column into a ComboBox. Is is a EditText)
    Fill a System matrix's Cell with the following code:
        Dim oMatrix As SAPbouiCOM.Matrix = oForm.Items.Item("38").Specific
        oMatrix.Columns.Item("ItemCode").Cells.Item(Row_Num).Specific.Value = "Item_Code"
    Regards,
    Vítor Vieira

  • How to prevent flushing out the value in Select one choice on page refresh

    Hi All,
    I am using Jdeveloper 11.1.1.4.0. In my page fragment I am using select one choice ADF component. I have a requirement that unless one fills all details on 1st fragment he/she cant move to next fragment.
    So validations are there to check that mandatory fields filled or not. If not than I am showing message to fill the mandatory fields when user press on "Review " Button.
    But the value in select one choice is getting cleared while other input values like date fields or input text are not(The input information stored in static variables)
    How can I prevent flushing out of select one choice value .
    Thanx
    kanika

    Kanika,
    You don't have value property set due to which the selected value doesn't get stored and looses its value on refresh.
    When you drop attribute as select one choice on page, the value property get bounded to some value, did you remove it intentionally?
    If so, can you try keeping the property and see if you see the intended behavior?
    Sireesha

  • How to prevent to create the transfer order

    Dear all,
    We have a storage bin in which it is having 2 Storage unit types E2 and U2 (SUTs).The storage bin will allow only 2 U2s or 3 E2s .Already the storage bin is having a quant with U2  SUT .But while creating the TO(quant/stock with E2 SUT)    in back ground system  should not select this storage bin as it is having a quant of U2 SUT but for some reasons system is trying to put away(Put away strategy Bulk ) the stock in this storage bin which is having already U2 SUT .How can i prevent this so that the system will skip this storage bin while doing put away and creating TO and should move the stock into the storage bin which is having SUT E2
    Regards
    susmita

    see the docu about Strategy P: Storage Unit Type (SAP Library - Warehouse Management System (WMS))
    this can fulfill your requirement directly.
    Do I understand correctly that you want it like this but with bulk strategy?:
    Material A with E2  + Material B with E2 = allowed
    Material A with E2 + Material A with U2 =  not allowed

  • How to prevent re-loading the jsp before servlet execution gets over

    Hi,
    From jsp, I am calling a function in js. From javascript function, I am calling a servlet in background frame after doing client-side validation. Before the servlet execution gets over, javascript function is getting over and it starts reloading the jsp again.
    I want to restrict the re-loading of jsp till the background servlet execution gets over.
    In background servlet, I am doing query execution.
    Its urgent. Please help me with this question.
    Thanks in advance,
    Sri

    For the time being, one suggestion would be to time how long the sql statement takes to execute. Lets say 1.5 seconds.
    Go into your javascript function and add say a 1.5 + .5 = 2.0 second delay before the javascript function completes (submits the page).
    This is a temporary fix. I doubt there is a better fix to this without knowing a great deal of AJAX and how it handles asynchronous communications.
    I don't know what the javascript function for creating a 2.0 second delay, but I imagine there is one in a javascript book.
    Once you implement the temporary fix above, I suggest you redesign your project to avoid these asynchronous problems by treating
    all your JSP pages as simple display pages and not embed any business logic in them (or in the javascripts). All processing should be done back on the server via servlets.

  • How can a user scroll the resultset obtained from a servlet in a jsp page?

    Actually i am having a page where user has to select company name and for tht i am providing him with a button, and on clicking tht button a
    new search page is provided , and on mentioning the search criteria ,a servlet is fired which returns a list of companies(tbasically i am creating a session object of resultset type which stores the companies name), now the servlets again goes back to search page, and here i want 2 display the company names, i am able to display company names in my search page , but now i want my user to select one of the companies from tht servlet.
    for tht i need to tap the onMouseOver function of java SCript, C
    Can any one tell me how to write code for tht
    Thanking in Advance

    see https://addons.mozilla.org/en-US/thunderbird/addon/send-later-3/

  • How do I make only the video stream through atv and keep audio via pc

    Basically I am having the video streamed via atv3 to my tv via HDMI, but I want the speakers connected to my PC to be used. They're logitech speakers that have the pink-green-black 3.5mm cable setup. They can't be plugged into the TV and it appears that the HDMI stream pulls audio through the TV but I just want it to only stream the video, if that's possible.
    I have searched other forums but due to ignorance I couldn't quite understand if their questions were the same, and the answers didn't seem to fit
    Any help would be great, thanks.

    Welcome to the forums!
    What is the size limit for your email system? It may be that it is too small for any reasonable audio file. I'd suggest looking at a file-hosting and download service like YouSendIt, which would let people download the full presentation.

  • HT4718 How to prevent the lac going to sleep mode in system recovery ?

    While trying restore the entire HD image to a different hdd in system recovery mode the laptop goes to sleep.
    How to prevent it ? the system recovery does not seem to have any terminal app so cannot issue caffeinate command either :/

    have you tried to restart your computer

  • FTP dictionary attack - how to prevent ?

    I'm already searched the board but haven't found a solution for our problem:
    During the last weeks the server was being hit by attacks looking like a dictionary attack. Someone tries to log in by ftp thousands of times. This made the server to reboot and finally destroying its mail database, which I rebuilt.
    My biggest problem however is how to prevent this in the future ? Unfortunately the server is used by a nonprofit organization, so we can't spend thousands for intrusion prevention firewall hardware.
    But isn't there a way to configure something like "Each IP is allowed to try logging in via ftp only X number of times per hour" for the ftp service ? I think this would help us.
    I already set to close connections after one wrong password try using Server Admin. By default it was set to "3". But guess that this doesn't really help.
    Any idea would be appreciated.

    No, the people here are used to access the server by ftp and I can't do much. Unfortunately.
    There are alternatives that are (usually) easier to use than ftp. (In my experience, most end-users aren't running a shell-level ftp command, they're running some sort of a front-end or GUI-based ftp client. Finder, perhaps. Which means most don't know they're even running ftp, in any real sense.)
    Also aren't most CMS more vulnerable to DoS attacks and intrusion attempts ? It's complex software with lots of security holes.
    Valid concerns, certainly.
    You do realize that ftp transmits the username and password credentials in cleartext, right?
    Anybody that peeves somebody else sufficiently can end up getting hit with a DoS or (worse) a DDoS or a dictionary attack. Sometimes, you don't even need to peeve somebody. I've dealt with a case of a user launching a DoS to get a tactical advantage over another user in an online game, too.
    Yes, CMS installations can be vulnerable; pick wisely, and stay current. An administrator need do the same thing with a CMS as with most anything else web-facing; evaluate security carefully, track updates and security notices and generally keep a lid on the riff-raff.
    But if you have a situation where you can use, for instance, certificate-based access, you can block most of the trouble and you can block typical open access.
    I find http://www.aczoom.com/cms/blockhosts being an interesting thing. However it's from 2005 - is it still actual or outdated ?
    I tend to either run fairly locked down with the web server and fairly defensive around, or (where applicable) use mod_security, or both.
    And a typical recommendation is to use an out-board firewall, and to house your address-based defenses and blacklists out there. Having users "loose" on the firewall (and I include myself in that) means that a mistake or a configuration change on the server can potentially open up an exposure. I much prefer to have the extra step of connecting to the firewall.
    A VPN server can also be housed out on a firewall (or host-based, if you're so inclined), which can allow you to run ftp and other protocols more securely.
    I do block some IP subnets. But the attacks I (still) see are from all over the IPv4 address space.

  • How does Imac connect to the internet?

    How does Imac connects to the internet?

    Through your ISP (internet service provider); once you set up an account with them, you can decide to connect via ethernet cable to their modem, or, if you have a router (which is connected to their modem, you can connect wirelessly.
    Is that what you were wondering about or did I misunderstand your question?

Maybe you are looking for