📄 SENATE PDF TOOLS
Select a PDF tool.
function runPDFTool(){
var tool=document.getElementById("pdfTool").value; var text=document.getElementById("textInput").value;
var output="";
if(tool=="text_to_pdf"){
if(text==""){ alert("Please enter text first."); return; }
output="TEXT TO PDF\n\n"+text+"\n\nConverted using Senate PDF Tools.";
}
else if(tool=="merge"){ output="MERGE PDF\n\nUpload multiple PDF files and combine them into one document."; }
else if(tool=="split"){ output="SPLIT PDF\n\nExtract pages or split one PDF into multiple documents."; }
else if(tool=="compress"){ output="COMPRESS PDF\n\nReduce PDF file size while keeping quality."; }
else if(tool=="jpg_to_pdf"){ output="JPG TO PDF\n\nConvert images into a single PDF document."; }
else if(tool=="pdf_to_jpg"){ output="PDF TO JPG\n\nConvert PDF pages into image files."; }
else if(tool=="word_to_pdf"){ output="WORD TO PDF\n\nConvert Word documents into PDF."; }
else if(tool=="pdf_to_word"){ output="PDF TO WORD\n\nConvert PDF files into editable Word documents."; }
else if(tool=="ppt_to_pdf"){ output="POWERPOINT TO PDF\n\nConvert presentation slides into PDF."; }
else if(tool=="excel_to_pdf"){ output="EXCEL TO PDF\n\nConvert spreadsheet files into PDF."; }
else if(tool=="rotate_pdf"){ output="ROTATE PDF\n\nRotate PDF pages to the correct orientation."; }
else if(tool=="protect_pdf"){ output="PROTECT PDF\n\nAdd password protection to your PDF file."; }
else if(tool=="unlock_pdf"){ output="UNLOCK PDF\n\nRemove password protection from PDF."; }
else if(tool=="add_watermark"){ output="ADD WATERMARK\n\nInsert watermark text or image to your PDF."; }
else if(tool=="remove_pages"){ output="REMOVE PAGES\n\nDelete unwanted pages from your PDF."; }
else if(tool=="extract_pages"){ output="EXTRACT PAGES\n\nExtract selected pages from a PDF file."; }
document.getElementById("resultText").innerText=output;
}
function copyText(){
var text=document.getElementById("resultText").innerText;
navigator.clipboard.writeText(text);
alert("Copied!");
}
function downloadText(){
var text=document.getElementById("resultText").innerText;
var blob=new Blob([text],{type:"text/plain"});
var link=document.createElement("a");
link.href=URL.createObjectURL(blob);
link.download="senate-pdf-tools.txt";
link.click();
}
function downloadPDF(){
var text=document.getElementById("resultText").innerText;
var win=window.open("","","width=600,height=400");
win.document.write("
"+text+"
");
win.print();
}
function shareContent(){
var text=document.getElementById("resultText").innerText;
if(navigator.share){
navigator.share({ title:"Generated with Senate PDF Tools", text:text, url:"https://senatecareerhub.com" });
}else{
alert("Sharing not supported on this browser");
}
}