Android Open Source - PDF2ImageForEP Mu P D F Page View






From Project

Back to project page PDF2ImageForEP.

License

The source code is released under:

GNU General Public License

If you think the Android project PDF2ImageForEP listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.artifex.mupdf;
//  w w  w .ja v a2  s.c  o  m
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Point;

public class MuPDFPageView extends PageView {
  private final MuPDFCore mCore;

  public MuPDFPageView(Context c, MuPDFCore core, Point parentSize) {
    super(c, parentSize);
    mCore = core;
  }

  public int hitLinkPage(float x, float y) {
    // Since link highlighting was implemented, the super class
    // PageView has had sufficient information to be able to
    // perform this method directly. Making that change would
    // make MuPDFCore.hitLinkPage superfluous.
    float scale = mSourceScale*(float)getWidth()/(float)mSize.x;
    float docRelX = (x - getLeft())/scale;
    float docRelY = (y - getTop())/scale;

    return mCore.hitLinkPage(mPageNumber, docRelX, docRelY);
  }

  @Override
  protected Bitmap drawPage(int sizeX, int sizeY,
      int patchX, int patchY, int patchWidth, int patchHeight) {
    return mCore.drawPage(mPageNumber, sizeX, sizeY, patchX, patchY, patchWidth, patchHeight);
  }

  @Override
  protected LinkInfo[] getLinkInfo() {
    return mCore.getPageLinks(mPageNumber);
  }
}




Java Source Code List

com.artifex.mupdf.ChoosePDFActivity.java
com.artifex.mupdf.LinkInfo.java
com.artifex.mupdf.MuPDFActivity.java
com.artifex.mupdf.MuPDFCore.java
com.artifex.mupdf.MuPDFPageAdapter.java
com.artifex.mupdf.MuPDFPageView.java
com.artifex.mupdf.OutlineActivityData.java
com.artifex.mupdf.OutlineActivity.java
com.artifex.mupdf.OutlineAdapter.java
com.artifex.mupdf.OutlineItem.java
com.artifex.mupdf.PageView.java
com.artifex.mupdf.ReaderView.java
com.artifex.mupdf.SafeAsyncTask.java
com.artifex.mupdf.SearchTaskResult.java
jp.co.muratec.pdf2image.DeepRadioGroup.java
jp.co.muratec.pdf2image.FilerActivity.java
jp.co.muratec.pdf2image.LoadLibrary.java
jp.co.muratec.pdf2image.PDF2ImageActivity.java
jp.co.muratec.pdf2image.PDF2ImageService.java