Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

How to show only name of the pdf without .pdf ext. 7 years 2 months ago #11874

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 69
  • Thank you received: 0
I want to show the pdf name only without .pdf extension in the project?

Please Log in or Create an account to join the conversation.

How to show only name of the pdf without .pdf ext. 7 years 2 months ago #11886

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
you have to change "name" prameter of set_file() method of PDFGridItem class.

Please Log in or Create an account to join the conversation.

How to show only name of the pdf without .pdf ext. 7 years 2 months ago #11906

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 69
  • Thank you received: 0
then wat I have to do in code ?

Please Log in or Create an account to join the conversation.

How to show only name of the pdf without .pdf ext. 7 years 2 months ago #11908

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
you have to use standard Android String methods to remove ".pdf" from "name" parameter..

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum