Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
SelectPdf HTML To PDF Online REST API is a professional solution that lets you create PDF from web pages and raw HTML code in your applications. The API is easy to use and the integration takes only a few lines of code.
Sign up for for free to get instant API access to SelectPdf HTML to PDF API.
require 'selectpdf'
print "This is SelectPdf-#{SelectPdf::CLIENT_VERSION}\n"
url = 'https://selectpdf.com'
local_file = 'Test.pdf'
api_key = 'Your API key here'
begin
api = SelectPdf::HtmlToPdfClient.new(api_key)
api.page_size = SelectPdf::PageSize::A4
api.margins = 0
api.page_numbers = FALSE
api.page_breaks_enhanced_algorithm = TRUE
api.convert_url_to_file(url, local_file)
rescue SelectPdf::ApiException => e
print("An error occurred: #{e}")
end
SelectPdf Pdf Merge REST API is an online solution that lets you merge local or remote PDFs into a final PDF document.
See PDF Merge API page for full list of parameters.
require 'selectpdf'
print "This is SelectPdf-#{SelectPdf::CLIENT_VERSION}\n"
test_url = 'https://selectpdf.com/demo/files/selectpdf.pdf'
test_pdf = 'Input.pdf'
local_file = 'Result.pdf'
api_key = 'Your API key here'
begin
client = SelectPdf::PdfMergeClient.new(api_key)
# specify the pdf files that will be merged (order will be preserved in the final pdf)
client.add_file(test_pdf) # add PDF from local file
client.add_url_file(test_url) # add PDF from public url
# merge pdfs to local file
client.save_to_file(local_file)
rescue SelectPdf::ApiException => e
print("An error occurred: #{e}")
end
SelectPdf Pdf To Text REST API is an online solution that lets you extract text from your PDF documents or search your PDF document for certain words.
See Pdf To Text API page for full list of parameters.
require 'selectpdf'
print "This is SelectPdf-#{SelectPdf::CLIENT_VERSION}\n"
test_pdf = 'Input.pdf'
local_file = 'Result.txt'
api_key = 'Your API key here'
begin
client = SelectPdf::PdfToTextClient.new(api_key)
# set parameters - see full list at https://selectpdf.com/pdf-to-text-api/
client.start_page = 1 # start page (processing starts from here)
client.end_page = 0 # end page (set 0 to process file til the end)
client.output_format = SelectPdf::OutputFormat::TEXT # set output format (Text or HTML)
print "Starting pdf to text ...\n"
# convert local pdf to local text file
client.text_from_file_to_file(test_pdf, local_file)
print "Finished! Number of pages processed: #{client.number_of_pages}.\n"
rescue SelectPdf::ApiException => e
print("An error occurred: #{e}")
end
FAQs
Unknown package
We found that selectpdf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.