FileDocCategorySizeDatePackage
PdfManipulationService.javaAPI DocAndroid 5.1 API16231Thu Mar 12 22:22:42 GMT 2015com.android.printspooler.renderer

PdfManipulationService

public final class PdfManipulationService extends android.app.Service
Service for manipulation of PDF documents in an isolated process.

Fields Summary
public static final String
ACTION_GET_RENDERER
public static final String
ACTION_GET_EDITOR
public static final int
ERROR_MALFORMED_PDF_FILE
public static final int
ERROR_SECURE_PDF_FILE
private static final String
LOG_TAG
private static final boolean
DEBUG
private static final int
MILS_PER_INCH
private static final int
POINTS_IN_INCH
Constructors Summary
Methods Summary
public android.os.IBinderonBind(android.content.Intent intent)


    
        
        String action = intent.getAction();
        switch (action) {
            case ACTION_GET_RENDERER: {
                return new PdfRendererImpl();
            }
            case ACTION_GET_EDITOR: {
                return new PdfEditorImpl();
            }
            default: {
                throw new IllegalArgumentException("Invalid intent action:" + action);
            }
        }
    
private static intpointsFromMils(int mils)

        return (int) (((float) mils / MILS_PER_INCH) * POINTS_IN_INCH);