PDFView
Use to check for default transformation
Thanks to tchu_2000 to remind that u should never hardcode strings! :)
Needed to copy memory from one location to another, used to fill the struct
Create a new instance of Ghostscript. This instance is passed to most other gsapi functions. The caller_handle will be provided to callback functions.
At this stage, Ghostscript supports only one instance.
This is the important function that will perform the conversion
Exit the interpreter. This must be called on shutdown if gsapi_init_with_args() has been called, and just before gsapi_delete_instance().
Destroy an instance of Ghostscript. Before you call this, Ghostscript must have finished. If Ghostscript has been initialised, you must call gsapi_exit before gsapi_delete_instance.
Get info about the version of Ghostscript i'm using
Use a different I/O
Function that menage the Standard INPUT
Function that menage the Standard OUTPUT
Function that menage the Standard ERROR output
The first page to convert in image
The last page to conver in an image
This parameter is used to control subsample antialiasing of graphics
This parameter is used to control subsample antialiasing of text
In how many thread i should perform the conversion
This is a Major innovation since 8.63 NEVER use it with previous version!
In how many thread i should perform the conversion
This is a Major innovation since 8.63 NEVER use it with previous version!
Set it to 0 made the program set it to Environment.ProcessorCount HT machine could want to perform a check for this..
The pagesize of the output
If true i will try to output everypage to a different file!
What format to use to convert
is suggested to use png256 instead of jpeg for document!
they are smaller and better suited!
The pagesize of the output
Without this parameter the output should be letter, complain to USA for this :) if the document specify a different size it will take precedece over this!
If set to true and page default page size will force the rendering in that output format
This parameter is used to control subsample antialiasing of graphics
Value MUST BE below or equal 0 if not set, or 1,2,or 4 NO OTHER VALUES!
This parameter is used to control subsample antialiasing of text
Value MUST BE below or equal 0 if not set, or 1,2,or 4 NO OTHER VALUES!
Quality of compression of JPG
The first page to convert in image
The last page to conver in an image
Set to True if u want the program to never display Messagebox
but otherwise throw exception
If i should redirect the Output of Ghostscript library somewhere
If true i will try to output everypage to a different file!
Convert a single file!
The file PDf to convert
The image file that will be created
You must pass all the parameter for the conversion
as Proprieties of this class
True if the conversion succed!
Convert a single file!
The file PDf to convert
The image file that will be created
You must pass all the parameter for the conversion here
Thanks to tchu_2000 for the help!
True if the conversion succed!
Convert a single file!
The file PDf to convert
The image file that will be created
if the function should throw an exception
or display a message box
You must pass all the parameter for the conversion
as Proprieties of this class
True if the conversion succed!
Remove the memory allocated
This function create the list of parameters to pass to the dll with parameters given directly from the program
The other parameters i could be interested
Be very Cautious using this! code provided and modified from tchu_2000
This function create the list of parameters to pass to the dll
the file to convert
where to write the image
the list of the arguments
Convert a Unicode string to a null terminated Ansi string for Ghostscript.
The result is stored in a byte array
The parameter i want to convert
the byte array that contain the string
Convert a Pointer to a string to a real string
the pointer to the string in memory
The string
Create by : TaGoH
URL of the last version: http://www.codeproject.com/KB/cs/GhostScriptUseWithCSharp.aspx
Description:
Class to convert a pdf to an image using GhostScript DLL
A big Credit for this code go to:Rangel Avulso
I mainly create a better interface and refactor it to made it ready to use!
Delegate used by Ghostscript to perform I/O operations
This struct is filled with the information of the version of this ghostscript
Have the layout defined cuz i will fill it with a kernel copy memory
Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
Sucht eine lokalisierte Zeichenfolge, die <HTML>
<HEAD>
<TITLE>PageIndex</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function changeImage(filename)
{
parent.pageviewer.document.images['mainimage'].src = filename;
}
</script>
</HEAD>
<BODY bgcolor="#DDDDDD">{Body}</BODY>
</HTML> ähnelt.
Sucht eine lokalisierte Zeichenfolge, die <HTML>
<HEAD>
<TITLE>PDF to Image Html</TITLE>
</HEAD>
<FRAMESET ROWS="50,*" FRAMEBORDER=0 BORDER=0 >
<FRAME NAME="top" SRC="content/top.html" MARGINHEIGHT=0 MARGINWIDTH=0 NORESIZE>
<FRAMESET COLS="20%,80%" FRAMEBORDER=0 BORDER=0>
<FRAME NAME="left" SRC="content/bookmark.html" MARGINHEIGHT=0 MARGINWIDTH=0 SCROLLING=AUTO NORESIZE>
<FRAMESET ROWS="*,25" FRAMEBORDER=0 BORDER=0 >
<FRAME NAME="pa [Rest der Zeichenfolge wurde abgeschnitten]"; ähnelt.
Sucht eine lokalisierte Zeichenfolge, die <HTML>
<HEAD>
<TITLE>PageViewer</TITLE>
</HEAD>
<BODY bgcolor="#999999"><center><img id="mainimage" src="images/page1.png" width="100%"></center></BODY>
</HTML> ähnelt.
Sucht eine lokalisierte Zeichenfolge, die <HTML>
<HEAD>
<TITLE>PageSize</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function fitScreen()
{
parent.pageviewer.document.images['mainimage'].style.height = '100%';
parent.pageviewer.document.images['mainimage'].style.width = 'auto';
}
function fitWidth()
{
parent.pageviewer.document.images['mainimage'].style.height = 'auto';
parent.pageviewer.document.images['mainimage'].style.width = '100%';
}
function fitActual()
{
parent.pageviewer.document.images['mainimage'].style.height = 'auto';
parent [Rest der Zeichenfolge wurde abgeschnitten]"; ähnelt.
Sucht eine lokalisierte Zeichenfolge, die <HTML>
<HEAD>
<TITLE>DocumentName</TITLE>
</HEAD>
<BODY bgcolor="#BBBBBB">{DocumentName}</BODY>
</HTML> ähnelt.
Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.