Jump to content

Different PDF on output


EricC

Recommended Posts

I have a #10 Envelope on one of my printable sites.

 

The envelope has to be converted (meaning it is printed flat and then sent to an envelope company that will die-cut the shape and fold and glue it, resulting in a finished envelope). So that 9.5 x 4.125 inch envelope actually prints sideways on an 11.5 x 17.5 sheet.

 

I want the customer to preview the 9.5 x 4.125 document online, but the press proof (the PDF we use to print) should be the 11.5 x 17.5 layout.

 

Is there a way to have an online store generate two separate files (one for on-screen proofing and one for printing), each file being a different size and position?

Link to comment
Share on other sites

Yes it's possible.

You need to create a document with both pages sizes. Make them both unused and then turn them on based on preview or composition.

I use this code:

 

//access the “isOnlinePreview” property and the “isPreview” property

 

onlinePreviewVal = FusionPro.Composition.JobOptions.isOnlinePreview;

desktopPreviewVal = FusionPro.Composition.isPreview;

 

//if this is a preview composition or a desktop preview

//then return the text “PROOF”

 

if (onlinePreviewVal == "Yes" || desktopPreviewVal == true)

FusionPro.Composition.SetBodyPageUsage("page1", true);

 

else

FusionPro.Composition.SetBodyPageUsage("page2", true);

Link to comment
Share on other sites

×
×
  • Create New...