Skip to content

Instantly share code, notes, and snippets.

View symisc's full-sized avatar

PixLab | Symisc Systems symisc

View GitHub Profile
@symisc
symisc / convert-pdf-to-image.js
Created July 18, 2025 18:03
Convert PDF Document to image format using the PixLab PDFTOIMG SDK-Free REST API Endpoint - https://pixlab.io/endpoints/pdftoimg
// Convert PDF Document to image format using the PixLab PDFTOIMG SDK-Free REST API Endpoint
fetch('https://api.pixlab.io/pdftoimg?src=https://www.getharvest.com/downloads/Invoice_Template.pdf&export=jpeg&key=PIXLAB_API_KEY')
.then(response => response.json())
.then(reply => {
if (reply.status !== 200) {
console.log(reply.error);
} else {
console.log("Link to the image output (Converted PDF page): " + reply.link);
}
})
@symisc
symisc / ondemand-pdf-generation-from-markdown.php
Created July 18, 2025 17:55
Programmatically Generate PDF documents from markdown or HTML input suing PixLab's PDFGEN API - https://pixlab.io/endpoints/pdfgen
<?php
# Programmatically Generate PDF document from markdown or HTML input
# Replace with your actual PixLab API key
$api_key = "YOUR_PIXLAB_API_KEY"; // Get yours from https://console.pixlab.io/
# Markdown formatted invoice
$markdown_text = <<<EOD
# Invoice
@symisc
symisc / ondemand-pdf-generation-from-markdown.py
Created July 18, 2025 17:55
Programmatically Generate PDF documents from markdown or HTML input suing PixLab's PDFGEN API - https://pixlab.io/endpoints/pdfgen
# Programmatically Generate PDF document from markdown or HTML input
import requests
import json
# Replace with your actual PixLab API key
api_key = "YOUR_PIXLAB_API_KEY" # Get yours from https://console.pixlab.io/
# Markdown formatted invoice
markdown_text = """
@symisc
symisc / ondemand-pdf-generation-from-markdown.js
Created July 18, 2025 17:54
Programmatically Generate PDF documents from markdown or HTML input suing PixLab's PDFGEN API - https://pixlab.io/endpoints/pdfgen
// Programmatically Generate PDF document from markdown or HTML input
// Replace with your actual PixLab API key
const apiKey = "YOUR_PIXLAB_API_KEY"; // Get yours from https://console.pixlab.io/
// Markdown formatted invoice
const markdownText = `
# Invoice
## To:
@symisc
symisc / background_remove_api.py
Last active September 2, 2025 08:49
Remove background programmatically using the PIxLab BGREMOVE API Endpoint - https://pixlab.io/endpoints/background-remove-api
import requests
import json
import base64
import os
# Programmatically remove backgrounds from input images using the PixLab BG-REMOVE API endpoint.
#
# Refer to the official documentation at: https://pixlab.io/endpoints/background-remove-api for the API reference
# guide and more code samples.
@symisc
symisc / image-query-pixlab-api.py
Created June 24, 2025 00:24
Get natural language responses to image-related queries using the PixLab query endpoint - https://pixlab.io/endpoints/query
import requests
import json
# Get natural language responses to image-related queries
# Target Image: Change to any link or switch to POST if you want to upload your image directly, refer to the REST API code samples for more info.
img = 'https://s-media-cache-ak0.pinimg.com/originals/35/d0/f6/35d0f6ee0e40306c41cfd714c625f78e.jpg'
@symisc
symisc / generate_image_description.py
Created June 22, 2025 23:46
Generate a natural language description of an image content using the PixLab DESCRIBE API Endpoint - https://pixlab.io/endpoints/describe
import requests
import json
# Generate a natural language description of an image content
# Target Image: Change to any link or switch to POST if you want to upload your image directly, refer to the REST API code samples for more info.
img = 'https://s-media-cache-ak0.pinimg.com/originals/35/d0/f6/35d0f6ee0e40306c41cfd714c625f78e.jpg'
key = 'PIXLAB_API_KEY' # Get your API key from https://console.pixlab.io/
@symisc
symisc / age_gender_extract.py
Last active August 26, 2025 17:34
Age Verification & Gender Extraction using the FACEIO REST API - https://faceio.net/rest-api#age-check
# Age Verification & Gender Extraction using the FACEIO REST API - https://faceio.net/rest-api#age-check
#
# The age verification API endpoint allows you to verify customer age and gender
# by directly uploading a base64 encoded image of the person being verified.
# No prior face enrollment is required; Age verification operates directly on the uploaded images.
# This API endpoint expects a single face to be present in the source image being checked.
import requests
import json
import base64
@symisc
symisc / face-compare-faceio-api.py
Last active August 26, 2025 17:55
Check whether two given faces in different images belong to the same person or not using the FACEIO API - https://faceio.net/rest-api#faceverify
# Face Verification API - Programmatically Compare Two Faces in Different Images
#
# Documentation: - https://faceio.net/rest-api#faceverify
#
# The Face Verify API endpoint allow you to programmatically compare (check) whether two faces
# in different images belong to the same person. This API is ideal for programmatic face checks
# that don't require user interaction. Simply upload two images, each containing a single face,
# using your preferred programming language, and the algorithm determines if the faces belong to the same person.
import requests
import json
@symisc
symisc / pixlab-docscan-passport-scan-ruby-example.rb
Last active May 7, 2026 01:26
Scan over 11K ID Documents from over 197 countries using the PixLab DOCSCAN API Endpoint documented at: https://pixlab.io/id-scan-api/docscan
=begin
* Scan over 11K ID Documents from over 197 countries using the PixLab DOCSCAN API Endpoint
* documented at: https://pixlab.io/id-scan-api/docscan
*
* Refer to the official documentation at: https://pixlab.io/id-scan-api/docscan
* for the API reference guide and more code samples.
=end
require 'net/http'
require 'uri'