Jump to content

JonBowman

Registered Users - Approved
  • Posts

    6
  • Joined

Posts posted by JonBowman

  1. I can see graphics in my FP template, but when I compose I get the following message. I have over 4,000 PDF images and if I Add Multiple into my template it will not compose at all.

    Composing record #1, input record 1

    Sheet #1, record #1

    Graphic is not found or is not processed properly: c:\PRINT\CLIENT\\Miller.pdf.

    Check for file existence and that it is of the proper format.

     

    Here is the script pulling the PDF graphics.

    var Var1 = "PDF";

    var Var2 = ".pdf";

    var Var3 = "c:\\PRINT\\CLIENT\\";

    var Var4 = "Miller.pdf";

     

    temp = '';

    var_extension = '';

    has_extension = '';

     

    if (Var3 == "")

    Var3 = Var3;

    else

    {

    if (FusionPro.isMac)

    Var3 = Var3 + ":";

    else

    Var3 = Var3 + "\\";

    }

     

    for (i=0; i<Field(Var1).length; i++)

    {

    temp = Mid(Field(Var1), Field(Var1).length-i,1);

    var_extension = temp + var_extension;

    var_extension = ToLower(var_extension);

    if(var_extension == ".png" || var_extension == ".pdf" || var_extension == ".gif" || var_extension == ".eps" || var_extension == ".tif" || var_extension == ".tiff" || var_extension == ".jpg" || var_extension == ".jpeg")

    {

    has_extension = "true";

    i=Field(Var1).length;

    }

    else

    has_extension = "false";

    }

     

    if(has_extension == "true")

    Pic = CreateResource(Var3 + Field(Var1), "graphic", true);

     

    else

     

    if (Pic.exists)

    {

    Pic.pagenumber = FusionPro.Composition.CurrentFlow.name;

    return Pic;

    }

     

    else

    {

    return CreateResource(Var3 + Var4, "graphic", true);

    }

    Using Windows 10, Fusion Pro VDP Designer 10.0.26

  2. I have a 50 page PDF that I need to split into 25 2 page PDFs with specific names. For example, Page 1 and 2 will go into a PDF called Group A-1, Pages 3 and 4 would be in a PDF called Group A-2. Every two pages would go into a file, so Pages 1/2, 3/4, 5/6, 7/8 etc. would be grouped. There is no merging at this point, I just need to output the segments to set up for the next part of the project for the merging, which I have figured out.

     

    Thank you in advance.

×
×
  • Create New...