Thread: JBPatch
View Single Post
Old 10-26-2012, 07:58 AM   #872
dung.saga
Junior Member
dung.saga can tame squirrels without the assistance of a chair or a whip.dung.saga can tame squirrels without the assistance of a chair or a whip.dung.saga can tame squirrels without the assistance of a chair or a whip.dung.saga can tame squirrels without the assistance of a chair or a whip.dung.saga can tame squirrels without the assistance of a chair or a whip.dung.saga can tame squirrels without the assistance of a chair or a whip.dung.saga can tame squirrels without the assistance of a chair or a whip.dung.saga can tame squirrels without the assistance of a chair or a whip.dung.saga can tame squirrels without the assistance of a chair or a whip.dung.saga can tame squirrels without the assistance of a chair or a whip.dung.saga can tame squirrels without the assistance of a chair or a whip.
 
Posts: 7
Karma: 11342
Join Date: Oct 2012
Device: Kindle Touch
Wink seems like PDF zoom parameters

I've just decoded PDFReader-impl.jar with jad, and I've found something looks like PDF zoom parameters in source code of PDFPageImpl.class

Code:
    private void x()
    {
        D(1.0D);
        K(600, 800);
        D(1.0D);
        K(800, 600);
        D(2D);
        K(600, 800);
        D(2D);
        K(800, 600);
        D(2.5D);
        K(600, 800);
        D(2.5D);
        K(800, 600);
        D(3D);
        K(600, 800);
        D(3D);
        K(800, 600);
    }

    private void K(int a, int a)
    {
        displayWidth = a;
        displayHeight = a;
        try
        {
            J();
        }
        catch(Exception a)
        {
            LOG.error("Failed to initiate page", a);
        }
    }

    public void D(double a)
    {
        if(a == 1.0D && theScaleFactor != a)
        {
            _scrollOffsetX = 0;
            _scrollOffsetY = 0;
        }
        theScaleFactor = a;
        j();
    }
Method K assigns value to displayWidth and displayHeight.
Method D assigns value to theScaleFactor.

Method x calls D() repeatedly with values 1, 2, 2.5 and 3.
It also calls K() repeatedly with values 600 and 800.

I guess this related to zoom ratio in PDF reader. But I don't know how to test it with JBPatch yet. A job for next week .
dung.saga is offline   Reply With Quote