Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

How to remove buttons

More
10 years 11 months ago #9941 by zadi
How to remove buttons was created by zadi
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!
More
10 years 11 months ago #9943 by Davide
Replied by Davide on topic How to remove buttons
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.
Time to create page: 0.345 seconds
Powered by Kunena Forum