Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
theonlysean@adobeforums.com #1
Converting a pdf document to a jpeg image C#
HI There,
How can I convert a pdf document to a jpeg image using c sharp? I need to do this on a web application. If someone can help me out with some code that would be great.
Sean - thanks in advance
theonlysean@adobeforums.com Guest
-
Access Image Metadata in a jpeg?
An image, like a jpeg, has a bunch of metadata stored in it. The "IPTC Core" metadata usually includes the photographers name, address, title,... -
Converting RGB image to CMYK causes image to disappear in Acro7
Got a document that has placed images in it that are black and white but were placed as RGB, so I am getting scum dots where white should be upon... -
send a jpeg image to asp/php
I need to send a custom jpeg edited in a shockwave editor to an asp/php page to save it on server. Anyone knows how to do? -
how to get the size of a jpeg image ?
How can I get the height and width of a jpeg image ? Thank you for help me. Emmanuel -
converting gif to jpeg
Hello, I am wondering if it is possible and legal to convert gif to jpeg with php. This would be helpful for clients to upload their logo, since... -
Aandi_Inston@adobeforums.com #2
Re: Converting a pdf document to a jpeg image C#
Before you can start the code, you need a suitable product installed.
This may be more challenging than you realise.
You cannot use Acrobat for this, because Acrobat must not be installed
on a server. Adobe's PDF Library might work, but that has a C/C++
linkage. Adobe's LiveCycle products seem to be Java based; not sure if
one of them does this.
Aandi Inston
Aandi_Inston@adobeforums.com Guest
-
wim.van.boven@hotmail.com #3
Re: Converting a pdf document to a jpeg image C#
On Apr 2, 4:40*am, theonlys...@adobeforums.com wrote:
try this from codeproject
pdfDoc = (Acrobat.CAcroPDDoc)
Microsoft.VisualBasic.Interaction.CreateObject("Ac roExch.PDDoc", "");
int ret = pdfDoc.Open(inputFile);
if (ret == 0)
{
throw new FileNotFoundException();
}
// Get the number of pages (to be used later if you wanted to store
that information)
int pageCount = pdfDoc.GetNumPages();
// Get the first page
pdfPage = (Acrobat.CAcroPDPage)pdfDoc.AcquirePage(0);
pdfPoint = (Acrobat.CAcroPoint)pdfPage.GetSize();
pdfRect = (Acrobat.CAcroRect)
Microsoft.VisualBasic.Interaction.CreateObject("Ac roExch.Rect", "");
pdfRect.Left = 0;
pdfRect.right = pdfPoint.x;
pdfRect.Top = 0;
pdfRect.bottom = pdfPoint.y;
// Render to clipboard, scaled by 100 percent (ie. original size)
// Even though we want a smaller image, better for us
to scale in .NET
// than Acrobat as it would greek out small text
// see [url]http://www.adobe.com/support/techdocs/1dd72.htm[/url]
pdfPage.CopyToClipboard(pdfRect, 0, 0, 100);
IDataObject clipboardData = Clipboard.GetDataObject();
if (clipboardData.GetDataPresent(DataFormats.Bitmap))
{
Bitmap pdfBitmap =
(Bitmap)clipboardData.GetData(DataFormats.Bitmap);
}
success Wim
wim.van.boven@hotmail.com Guest
-
-
Unregistered #5
Re: Converting a pdf document to a jpeg image C#
You may want to check:
Is opensource and use ghostscript (free download)
example of use:
converter = new PDFConverter();
converter.JPEGQuality = 90;
converter.OutputFormat = "jpg";
converter.Convert("input.pdf", "output.jpg");Unregistered Guest



Reply With Quote


