Quantcast
Channel: Adobe Community : Unanswered Discussions - Adobe FrameMaker
Viewing all articles
Browse latest Browse all 5254

Print File with parameters

$
0
0

Hello folks

 

I'm trying to make a script to print my current doc (before merging it with other script)

I have A4 format document, I need to print it to my "Adobe PDF Printer" with Registred Marks in an A3 Format.

(my default printer is Adobe PDF but with A4 Format)

 

My first step whas to look at the Framemaker scripting PDF file, to learn how to print my doc.

 

I see only "SimplePrintDoc method to print.... but

The help, speak about the "SetInt()" method to set the properties ... never find the SetInt() in the help !!!

So i try changing the ActiveDoc parameters.

 

But changing PDFRegistrationMarks/ PDFPage(size) or PrintPaper(size), PrintRegistratinMarks ... do nothing when i want to print.

 

So I guest that SimplePrintDoc juste print with the default Printer parameters.

Is there a way to print with the parameters i want?

 

var vDoc = app.ActiveDoc;
vDoc.PrinterName = null;
vDoc.PrintRegistrationMarks = 1;
vDoc.PDFPageHeight = 55174076;
vDoc.PDFPageWidth = 39011973;
vDoc.PrintPaperHeight = 39011973*2;;
vDoc.PrintPaperWidth = 55174076;
vDoc.PDFRegistrationMarks = Constants.FV_PDFRegistrationMarksWestern;
vDoc.SilentPrintDoc();
// --- size of A4 Format ----
// PaperHeight = 55174076
// PaperWidth = 39011973

Viewing all articles
Browse latest Browse all 5254

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>