Hi, gb-jump.
Here are some code about the related image resizing process:
[code]using System;
using System.Drawing;
using System.Drawing.Imaging;
using PQScan.PDFToImage;
namespace SpecifyImageSize
{
Class Program
{
Static void Main(string[] args)
{
// Create an instance of PQScan.PDFToImage.PDFDocument object.
PDFDocument pdfDoc = new PDFDocument();
// Load PDF document.
pdfDoc.LoadPDF("sample.pdf");
// Set dpi to render image
pdfDoc.DPI = 96;
//Get total page count.
int count = pdfDoc.PageCount;
for (int i = 0; i < count; i++)
{
//Convert page to image in target size
Bitmapbmp = pdfDoc.ToImage(i, 100, 200);
//Save image
bmp.Save("output" + i + ".png", ImageFormat.Png);
}
}
}
} [/code]
I wonder how can I use these codes. Do I need another
[url=http://www.pqscan.com/convert-pdf/to-image-size-vb.html]image resizing
SDK[/url] to help
[url=http://www.pqscan.com/convert-pdf/to-image-size-csharp.html]define the
size of images[/url]? I am almost a green hand here. Any suggestion will be
appreciated. Thanks in advance.
Best regards,
Arron
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=60011026-b1ff-4037-9168-7cc2320e7253
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------