»Ë»Ñ Æ÷·³
°³¹ßÀÚÆ÷·³ ÀÔ´Ï´Ù.
  • ºÏ¸¶Å© ¾ÆÀÌÄÜ

[¿Ï·á]rundll32 PRINTUI.DLL,PrintUIEntry ¾î¶»°Ô ¾²´ÂÁö ¾Æ½Ã´ÂºÐ °è½Å°¡¿ä??1

  • than
  • µî·ÏÀÏ 2017-05-25 14:34
  • Á¶È¸¼ö 250

.dwg¸¦ .pdf ·Î º¯È­ÇØÁÖ´Â ±â´ÉÀ» ¸¸µé·Á°íÇϴµ¥¿ä.

(»ç¿ë¾ð¾î´Â c++ ¹è¿ì´Â ÁßÀ̶ó. c++·Î ÇÏ·Á°íÇÏ°í ÀÖ°í¿ä)

 

ã¾Æº¸´Ù°¡ PDFCreatorÀ̶õ ÇÁ·Î±×·¥ ¾²¸éµÈ´Ù´Â ¸»À» ºÁ¼­ ÀÌ ÇÁ·Î±×·¥ ¼³Ä¡Çؼ­ ¿¹Á¦¸¦ º¸°íÀִµ¥¿ä.

Å×½ºÆ® ÆäÀÌÁö´Â pdf·Î Ãâ·ÂÀÌ µÇ´õ¶ó°í¿ä.

 

±×·¡¼­ ƯÁ¤ÆÄÀÏÀ» Á¦°¡ ÁöÁ¤Çؼ­ Ãâ·ÂÇÏ·Á°íÇϴµ¥ 

 

¿¹Á¦¿¡´Â 

objShell.ShellExecute("RUNDLL32.exe", "PRINTUI.DLL,PrintUIEntry /k /n \"PDFCreator\"", "", "open", 1); 

ÀÌ ºÎºÐÀÌ Å×½ºÆ®ÆäÀÌÁö¸¦ »Ì°ÔÇÏ´Â ºÎºÐÀÌ´õ±º¿ä.

 

ã¾Æº¸´Ï /k°¡ Å×½ºÆ® ÆäÀÌÁö Àμâ¶ó´Â ¸»ÀÌ°í 

/a¶ó´Â°Ô Àִµ¥ ÀÌ°Ô ¹ÙÀ̳ʸ® ÆÄÀÏ Àμ⠶ó´øµ¥ .bin ÆÄÀÏ ¸¸µé¾î¼­ Àμö¿¡ ³Ö¾îÁ൵ Àμö°¡ ¸ÂÁö ¾Ê´Ù°í ¶å´Ï´Ù.

 

Ȥ½Ã »ç¿ë¹ý ¾Æ½Ã´Â ºÐ °è½Å°¡¿ä??

 

 

 

¾Æ´Ï¸é .dwg ÆÄÀÏÀ» pdf·Î ¸¸µå´Â ´Ù¸¥ ¹æ¹ý ¾Æ½Ã´ÂºÐ °è½Å°¡¿ä? ¤Ð¤Ð

 

 

 

 

 

 

¾Æ·¡´Â ¿¹Á¦ ¼Ò½º ÀÔ´Ï´Ù. 

 

var objFSO = new ActiveXObject("scripting.FileSystemObject");

var objShell = new ActiveXObject("Shell.Application");


var scriptname = objFSO.GetFileName(Wscript.scriptFullname);


if (Wscript.Version < 5.6){

 Wscript.Echo("You need the \"Windows scripting Host version 5.6\" or greater!");

 Wscript.Quit();

}

try{

var PDFCreatorQueue = new ActiveXObject("PDFCreator.JobQueue");

 

Wscript.Echo("Initializing PDFCreator queue...");

PDFCreatorQueue.Initialize();


//var fullPath = objFSO.GetParentFolderName(Wscript.scriptFullname) + "\\TestPage.pdf";

var fullPath = objFSO.GetParentFolderName(Wscript.scriptFullname) + "\\TestPage.jpeg";

Wscript.Echo("Setting up target path to: " + fullPath);

 

Wscript.Echo("Printing one windows test page...");

objShell.ShellExecute("RUNDLL32.exe", "PRINTUI.DLL,PrintUIEntry /k /n \"PDFCreator\"", "", "open", 1);


Wscript.Echo("Waiting for the job to arrive at the queue...");

if(!PDFCreatorQueue.WaitForJob(10)) {   

Wscript.Echo("The print job did not reach the queue within " + 10 + " seconds"); 

} else {

Wscript.Echo("Currently there are " + PDFCreatorQueue.Count + " job(s) in the queue");

Wscript.Echo("Getting job instance");

var job = PDFCreatorQueue.NextJob;

//Alternative: job.SetProfileByName("DefaultGuid");

//For converting to other formats than pdf set here the appropriate conversion profile

//job.SetProfileByGuid("DefaultGuid");

    job.SetProfileByGuid("JpegGuid");//jpeg·Î Ãâ·Â

    

Wscript.Echo("Converting under \"DefaultGuid\" conversion profile");

job.ConvertTo(fullPath);

if(!job.IsFinished || !job.IsSuccessful){

Wscript.Echo("Could not convert the file: " + fullPath);

} else{

Wscript.Echo("Job finished successfully");

}

}

Wscript.Echo("Releasing the object");

PDFCreatorQueue.ReleaseCom();

}

catch(e){

Wscript.Echo(e.message);

PDFCreatorQueue.ReleaseCom();

}

0
ÃßõÇϱ⠴ٸ¥ÀÇ°ß 0
|
°øÀ¯¹öÆ°

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 than
  • ¾Ë¸² ¿å¼³, »óó ÁÙ ¼ö ÀÖ´Â ¾ÇÇÃÀº »ï°¡ÁÖ¼¼¿ä.
©¹æ »çÁø  
¡â ÀÌÀü±Û¡ä ´ÙÀ½±Û