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

TOPIC:

How to remove buttons 8 years 4 months ago #9941

  • zadi
  • zadi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Hi, i want to remove a buttons on my class implements PDFLayoutListener.
i need remove buttons that go to click the document, need only show clear pdf, i think need buy license?
this is my code used to run intent when show pdf:

Global.Init( this );
m_layout = (RelativeLayout)LayoutInflater.from(getApplicationContext()).inflate(R.layout.action_bar_pdf, null);
m_view = (PDFLayoutView)m_layout.findViewById(R.id.webView1);




Intent intent = getIntent();
String bmp_format = intent.getStringExtra("BMPFormat");
if(bmp_format != null)
{
if (bmp_format.compareTo("RGB_565") == 0)
m_view.PDFSetBmpFormat(Bitmap.Config.RGB_565);
else if (bmp_format.compareTo("ARGB_4444") == 0)
m_view.PDFSetBmpFormat(Bitmap.Config.ARGB_4444);
}
if(ms_tran_doc != null)
{
m_doc = ms_tran_doc;
ms_tran_doc = null;
m_doc.SetCache(String.format("%s/temp%08x.dat", Global.tmp_path, m_tmp_index));//set temporary cache for editing.
m_tmp_index++;
m_view.PDFOpen(m_doc, this);
m_controller = new PDFViewController(m_layout, m_view);
need_save_doc = true;
}
else
{
String pdf_asset = intent.getStringExtra("PDFAsset");
String pdf_path = intent.getStringExtra("PDFPath");
String pdf_pswd = "";
String pdf_http = "www.radaeepdf.com/documentation/MRBrochoure.pdf";
if(pdf_http != null && pdf_http != "" )
{
m_http_stream = new PDFHttpStream();
m_http_stream.open(pdf_http);
m_doc = new Document();
int ret = m_doc.OpenStream(m_http_stream, pdf_pswd);
ProcessOpenResult(ret);
}
else if( pdf_asset != null && pdf_asset != "" )
{
m_asset_stream = new PDFAssetStream();
m_asset_stream.open(getAssets(), pdf_asset);
m_doc = new Document();
int ret = m_doc.OpenStream(m_asset_stream, pdf_pswd);
ProcessOpenResult(ret);
}
else if( pdf_path != null && pdf_path != "" )
{
m_doc = new Document();
int ret = m_doc.Open(pdf_path, pdf_pswd);
m_doc.SetCache(String.format("%s/temp%08x.dat", Global.tmp_path, m_tmp_index));//set temporary cache for editing.
m_tmp_index++;
m_doc.SetFontDel(m_font_del);
ProcessOpenResult(ret);
}
}
setContentView(m_layout);



thx!

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

How to remove buttons 8 years 4 months ago #9943

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
yes you have to buy a license to remove the watermark over the pdfs.
Check this: www.radaeepdf.com/ecommerce/technical-specification

To remove buttons you can simply remove or hide them from the reader.xml file.
The following user(s) said Thank You: zadi

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

  • Page:
  • 1
Powered by Kunena Forum