Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #12412 Reply

    Sara

    Hi!
    Sorry I am new in plugpdf and I am not able to display the simpledocumentreader within the frame of my app, it displays whole screen.

    I am calling it form a fragment
    Intent i = new Intent(getContext(), PlugPdfActivity.class);
    i.putExtra(PlugPdfActivity.EXTRA_PDF_PATH, fileUri.getPath());
    i.putExtra(PlugPdfActivity.EXTRA_PDF_PAGE, getCurrentPage());
    getContext().startActivity(i);

    And my PlugPdfActivity oncreate

    Intent i = getIntent();
    String pdfPath = i.getStringExtra(EXTRA_PDF_PATH);
    int page = i.getIntExtra(EXTRA_PDF_PAGE, 1);

    mReader = SimpleReaderFactory.createSimpleViewer(this, listener);
    mReader.openFile(pdfPath, “”);
    mReader.goToPage(page);

    Can you give me a hand?

    Thanks

    #12413 Reply

    Dr. Plug
    Moderator

    Hello Sara,

    Thank you for your patience and we are very sorry about late answer.
    Can you check that is the pdf file is open in our sample project?
    If it does not open, there may be a problem with the pdf file.
    If so, can you give us the pdf file to analysis that?

    Best regards,

    Dr.Plug
    PlugPDF Support

    #12420 Reply

    Sara

    I am sorry about my english, I meant that the pdf shows but appears in full screen, not in the app frame layout, In the sample project happens the same it appears full screen

    #12421 Reply

    Dr. Plug
    Moderator

    Hello Sara,

    Thank you for your answer. The SimpleDocumentReader class is not a view.
    It is better way to attach the ReaderView object in your frame layout.

    I hope this will be helpful to you.

    Best regards,

    Dr.Plug
    PlugPDF Support

    #12427 Reply

    Sara

    But the ReaderView has not the edit tool bar right? if I want to have the edit toolbar visible?

    #12430 Reply

    Dr. Plug
    Moderator

    Hello Sara,

    Thank you for your answer and sorry for late answer.
    The toolbar is in the SimpleReaderControlView class.
    Please attach the class to the SimpleDocumentReader class.

    I hope this will be helpful to you.

    Best regards,

    Dr.Plug
    PlugPDF Support

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: SimpleDocumentReader inside my app frame
Your information: