Jump to content

e88z4

Registered Users - Approved
  • Posts

    4
  • Joined

Converted

  • FusionPro Products
    No

e88z4's Achievements

Newbie

Newbie (1/14)

  • First Post Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

10

Reputation

  1. When I use the checkbox to enable my preview to turn my preview on, the checkbox is flickering on and turn back off in less than 1 sec. I don't get my preview. Another occasion, I got an error box pop-up on the screen telling about some temporary file. I didn't catch the screen capture on that moment. I checked the temporary file, it was a file that FusionPro created to displaying the live preview on screen.
  2. I did you suggestion to use the FusionPro.Composition.IsPreview on onJobStart callback but I got an error when I try previewing my job. I thought that would solve my problem. I am thinking another way to do it by putting the code in onNewOutputFile and click to split file with some huge number bigger than the number of record in the file. I didnd't test it yet. This is my code below if(!FusionPro.Composition.IsPreview){ newFileExt = FusionPro.Composition.JobOptions["OutputFormat"]; inputFileName = GetFileName(FusionPro.Composition.inputFileName).split("."); switch (newFileExt){ case "Indigo PPML": newFileExt = ToLower("." + "PPML"); break; case "PostScript": newFileExt = ToLower("." + "ps"); break; case "Digimaster": newFileExt = ToLower("." + "ps"); break; case "Single-File VPS": newFileExt = ToLower("." + "vps"); break; case "Multi-File VPS": newFileExt = ToLower("." + "vps"); break; case "PDF": newFileExt = ToLower("." + "pdf"); break; default: newFileExt = ToLower("." + newFileExt); break; } FusionPro.Composition.outputFileName = ReplaceFileExtension(GetFileName(inputFileName[0]), newFileExt); }
  3. I don't have output to multiple files selected because the data is split into several files already. Can you explain about the preview error I got when I place my code in onJobStart?
  4. Hi, I have a simple callback rule for onNewOutputFile newFileExt = FusionPro.Composition.JobOptions["OutputFormat"]; switch (newFileExt){ case "Indigo PPML": newFileExt = ToLower("." + "PPML"); break; case "PostScript": newFileExt = ToLower("." + "ps"); break; case "Digimaster": newFileExt = ToLower("." + "ps"); break; case "Single-File VPS": newFileExt = ToLower("." + "vps"); break; case "Multi-File VPS": newFileExt = ToLower("." + "vps"); break; case "PDF": newFileExt = ToLower("." + "pdf"); break; default: newFileExt = ToLower("." + newFileExt); break; } FusionPro.Composition.outputFileName = ReplaceFileExtension(GetFileName(FusionPro.Composition.inputFileName), newFileExt); Print("Replacing the output filename with the input filename:"); Print("Input file name is " + GetFileName(FusionPro.Composition.inputFileName)); Print("Output filename is " + FusionPro.Composition.outputFileName);The callback doesn't even run the print statement at the bottom of the code. This rule runs fine with FusionPro 7.1. I tried to experiment just putting a simple print function in onNewOutputFile Print("Hello world!");The composition doesn't log the print statement in my log file. My other solution is put my code in onJobStart but it gives me an error when I try to preview my pdf. Can you explain the changes from 7.1 to 7.2?
×
×
  • Create New...