Skip to content

Instantly share code, notes, and snippets.

View debdutdeb's full-sized avatar
🩸

Debdut Chakraborty debdutdeb

🩸
View GitHub Profile
/* Copyright (C) 2001-2020 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
implied.
This software is distributed under license and may not be copied,
modified or distributed except as expressly authorized under the terms
of the license contained in the file LICENSE in this distribution.
@debdutdeb
debdutdeb / compress-pdf-gs.cpp
Last active February 12, 2021 09:40
This is going to be so helpful in the compress-pdf application :D
#ifndef __COMPRESS_H__
#define __COMPRESS_H__
#include "iapi.h"
#include <string>
#include <cstring>
#include <iostream>
#include <errno.h>
static int GSDLLCALL gs_stdout