Hi, tried
PDF Compression from official documentation
https://www.gdpicture.com/guides/gdpicture/web ... ments.html
Not Working Good.....
If need file i can send in private....
We implement in this way:
GdPicturePDF oGdPicturePDF = new GdPicturePDF();
GdPictureStatus status = default(GdPictureStatus);
status = oGdPicturePDF.LoadFromStream(new MemoryStream(Convert.FromBase64String(base64)));
if(status != GdPictureStatus.OK)
{
return base64;
}
oGdPicturePDF.EnableCompression(true);
oGdPicturePDF.SetCompressionForBitonalImage
MemoryStream stream = new MemoryStream();
status = oGdPicturePDF.SaveToStream(stream);
if(status == GdPictureStatus.OK)
{
string result = Convert.ToBase64String(stream.ToArray());
if(result != null && result.Length > 0)
{
return result;
}
}
PDF Compression (Stream)
Re: PDF Compression (Stream)
Hi,
Try to use this method for saving:
SaveToStream(Stream,Boolean) Method
You can also try our end-user software to compress your PDF documents:
ORPALIS PDF Reducer
Try to use this method for saving:
SaveToStream(Stream,Boolean) Method
You can also try our end-user software to compress your PDF documents:
ORPALIS PDF Reducer
Who is online
Users browsing this forum: No registered users and 2 guests