Skip to main content
Known Participant
February 15, 2019
Question

use ppapi,can not print,very serious bug

  • February 15, 2019
  • 8 replies
  • 970 views

var sprite:Sprite = new Sprite();
var tf:TextField = new TextField();
tf.text="中文123";
sprite.addChild(tf);

var job:PrintJob = new PrintJob();

if (print.start())
{
job.addPage(sprite);
job.send();
}

when use ppapi,npapi,text can not print,very serious bug!!!

flash.text.engine.TextLine,flash.text.engine.TextLine

has the same problem.

Please help me,help me!

    This topic has been closed for replies.

    8 replies

    Legend
    February 23, 2019

    I think the waste of effort and devastation will be terrible. The closing down of stuff for “security reasons” rather than doing it properly and securely is a blight on our industry.  Countless businesses and facilities will be lost. But I have no reason for optimism that it will be otherwise. Hence I make it part of my task to make sure people understand FLASH WILL GO AWAY rather than skate over the message. It’s not too late for some to save themselves.

    Robert Mc Dowell
    Legend
    February 23, 2019

    > I think the waste of effort and devastation

    yes indeed, that's why I'm optimistic, because I never saw users, btw people to just accept a disaster, rather something better will be built on top of it, and I''m very confident that today very good developers with good ideas all around the world can change/adapt, give oppotunities to many to solve unnecessary problems.

    Legend
    February 23, 2019

    I think you’ll find Microsoft believe they CAN block Flash in IE, and you know, I believe them. “

    • By the end of 2020, we will remove the ability to run Adobe Flash in Microsoft Edge and Internet Explorer across all supported versions of Microsoft Windows. Users will no longer have any ability to enable or run Flash.”

    https://www.google.co.uk/amp/s/blogs.windows.com/msedgedev/2017/07/25/flash-on-windows-timeline/amp/

    Legend
    February 23, 2019

    Whether the download server is turned off is an interesting question. But would you keep running an old version if security problems are no longer fixed? Every hacker in the world will see you and your customers as an easy target.

    But it is almost unimportant (for the developer making choices) whether the server is turned off because all major browsers will block Flash before the end. Most major browsers now auto update so users will simply not be able to choose to use Flash. 

    anyicwAuthor
    Known Participant
    February 23, 2019

    What you said is impossible. For IE, FLASH is only a ActiveX control, IE can not cancel the support for ActiveX control, so as long as IE can be used. We can force customers to use only IE browsers.

    Legend
    February 22, 2019

    Miracles can happen. When they do I plan to seize them. But a plan to rely on them might prove hard to justify to stockholders.

    Legend
    February 22, 2019

    Flash will go away by 2020. Some browser makers have an earlier target. Adobe have no say in this now, the browser makers are blocking it one by one. Already they are making it difficult. Still think there is a fortune to be made?

    Robert Mc Dowell
    Legend
    February 22, 2019

    Life is made of miracles, why not on computers?

    Legend
    February 22, 2019

    You're welcome. Silverlight ceased development in 2013.  I believe that to have the smallest chance of this all happening again, HTML5 is the way to go, even if it limits inventiveness.

    Robert Mc Dowell
    Legend
    February 22, 2019

    HTML5 never been a substitute of Flash, it's HTML5 + JAVASCRIPT

    anyicwAuthor
    Known Participant
    February 22, 2019

    You fools, if you use FLASH to develop a set of ERP, you will earn more than SAP.

    jeromiec83223024
    Inspiring
    February 19, 2019

    Printing support in Chrome (via PPAPI) is very limited.  The PPAPI specification is frozen, and Google's agenda is to deprecate Flash support in the browser.  You're welcome to file a bug, but it's a browser limitation, and unlikely to get fixed.


    My recommendation, given that it's 2019 and we're rapidly approaching the end of the Flash lifecycle, would be to render your output in HTML and JavaScript and print from there.  You could use ExternalInterface to invoke that activity from Flash, and JavaScript libraries targeting HTML5 Canvas for rendering complex graphics, barcodes, etc, or maybe assemble a ByteArray of what you want to print and push that over to JavaScript for rendering as an image.

    anyicwAuthor
    Known Participant
    February 22, 2019

    I don't agree with you because the line can be printed.

    I suggest you test again. I think it's FLASH's BUG itself, not chrome's limitation.

    Legend
    February 22, 2019

    You have less than one year to find a complete alternative to Flash, so why are you worrying about this detail?

    Legend
    February 15, 2019

    Versions, browsers, platforms?

    Define "can not print"?

    anyicwAuthor
    Known Participant
    February 16, 2019

    WIN10,chrome v72,Adobe flash player 32.0.0.142,

    var sprite:Sprite = new Sprite();
    var tf:TextField = new TextField();
    tf.text="abcd123";
    sprite.addChild(tf);

    var job:PrintJob = new PrintJob();

    if (job.start())
    {
    job.addPage(sprite);
    job.send();
    }

    textfield print blank,line can be print,but textfiled become blank.

    IE work correctly. This bug appear long time ago,begin at ppapi v24.