• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Print File with parameters

Explorer ,
Jun 01, 2017 Jun 01, 2017

Copy link to clipboard

Copied

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

TOPICS
Scripting

Views

499

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation