cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-5055%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ESkript%20zum%20Speichern%20als%20PDF%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-5055%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CP%3EHallo%20zusammen%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EIch%20habe%20eine%20Reihe%20von%20Diagrammen%2C%20die%20ich%20gerne%20als%20PDF%20speichern%20w%C3%BCrde.%3C%2FP%3E%3CP%3EIch%20habe%20derzeit%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EAktuelles%20Journal()%26lt%3B%3CPDF%20speichern%3D%22%22%3E%3C%2FPDF%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EDadurch%20wird%20mein%20Tagebuch%20als%20PDF%20gespeichert%2C%20aber%20es%20ist%20furchtbar%20unma%C3%9Fst%C3%A4blich%20und%20erstreckt%20sich%20%C3%BCber%20mehrere%20Seiten.%3C%2FP%3E%3CP%3EWenn%20ich%20%C3%BCber%20Datei%20-%26gt%3B%20Speichern%20unter%20-%26gt%3B%20PDF%20gehe%2C%20kann%20ich%20Optionen%20f%C3%BCr%20Skalierung%2FQuerformat%20usw.%20ausw%C3%A4hlen.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EGibt%20es%20%C3%BCberhaupt%20eine%20M%C3%B6glichkeit%2C%20diese%20Optionen%20f%C3%BCr%20ein%20Skript%20zu%20erhalten%3F%20Ich%20kann%20anscheinend%20nichts%20in%20der%20Anleitung%20oder%20im%20Index%20finden.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EVielen%20Dank%20f%C3%BCr%20Ihre%20Hilfe!%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E-Matt%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-5063%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Skript%20zum%20Speichern%20als%20PDF%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-5063%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Egenau%20das%2C%20was%20ich%20auch%20brauchte%20...%20JMP%20ist%20so%20nett%20%3A)%3C%2Fimg%3E%20...mein%20Weihnachtsgeschenk%3CSPAN%20__jive_emoticon_name%3D%22silly%22%20__jive_macro_name%3D%22emoticon%22%20class%3D%22jive_macro_emoticon%20jive_emote%20jive_macro%22%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2F7.0.4.3b79b96%2Fimages%2Femoticons%2Fsilly.png%22%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-5062%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Skript%20zum%20Speichern%20als%20PDF%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-5062%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIch%20glaube%20nicht%2C%20dass%20es%20einen%20Dritten%20gibt%3CSPAN%20style%3D%22color%3A%20%234f4f4f%3B%22%3E%3CA%20href%3D%22http%3A%2F%2Fwww.rasteredge.com%2Fhow-to%2Fvb-net-imaging%2Fpdf-get-to-start%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%3CSPAN%20style%3D%22color%3A%20%234f4f4f%3B%22%3E%20PDF-Erstellungstool%3C%2FSPAN%3E%3C%2FA%3E%3C%2FSPAN%3E%20kann%20proaktische%20Hilfe%20anbieten.%20Vielleicht%20k%C3%B6nnen%20Sie%20einen%20Blick%20auf%20den%20folgenden%20Beitrag%20werfen%2C%20der%20Code%20verwendet%2C%20um%20das%20Skalierungsproblem%20zu%20l%C3%B6sen%3CSPAN%20style%3D%22color%3A%20%234f4f4f%3B%22%3E%3CA%20href%3D%22http%3A%2F%2Fwww.rasteredge.com%2Fhow-to%2Fvb-net-imaging%2Fpdf-add-image%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%3CSPAN%20style%3D%22color%3A%20%234f4f4f%3B%22%3E%20Bild%20im%20PDF%3C%2FSPAN%3E%3C%2FA%3E%3C%2FSPAN%3E%20.Wie%20auch%20immer%2C%20wir%20freuen%20uns%20darauf%2C%20dass%20der%20Experte%20uns%20mit%20Rat%20und%20Tat%20zur%20Seite%20steht.%3CSPAN%20__jive_emoticon_name%3D%22happy%22%20__jive_macro_name%3D%22emoticon%22%20class%3D%22jive_macro%20jive_macro_emoticon%20jive_emote%22%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2F5.0.2%2Fimages%2Femoticons%2Fhappy.gif%22%3E%3C%2FSPAN%3E%3C%2FP%3E%3CTABLE%20border%3D%220%22%20cellpadding%3D%220%22%20cellspacing%3D%220%22%20style%3D%22width%3A%20640px%3B%22%3E%3CTBODY%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22http%3A%2F%2Fstackoverflow.com%2Fquestions%2F13557787%2Fsaving-graph-in-pdf-or-png-scaling-issue%22%20title%3D%22http%3A%2F%2Fstackoverflow.com%2Fquestions%2F13557787%2F%20saving-graph-in-pdf-or-png-scaling-issue%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Er%20%E2%80%93%20Problem%20mit%20der%20Skalierung%20des%20Diagramms%20im%20PDF-%20oder%20PNG-Format%20%E2%80%93%20Stapel%C3%BCberlauf%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-5061%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Skript%20zum%20Speichern%20als%20PDF%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-5061%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%2C%3C%2FP%3E%3CP%3EIch%20speichere%20immer%20als%20---%26gt%3B%20PDF%20und%20so%20weiter.%3C%2FP%3E%3CP%3ESie%20k%C3%B6nnen%20die%20Gr%C3%B6%C3%9Fe%20der%20Seite%20anpassen%2C%20ich%20muss%20jedoch%20zustimmen%2C%20dass%20dies%20eine%20sehr%20schlechte%20Schnittstelle%20zum%20Generieren%20gesch%C3%A4ftstauglicher%20PDFs%20ist.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EIch%20hoffe%2C%20dass%20JMP%20sich%20ernsthaft%20mit%20diesem%20Thema%20befasst.%3C%2FP%3E%3CP%3EGr%C3%BC%C3%9Fe%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-5060%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Skript%20zum%20Speichern%20als%20PDF%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-5060%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3EJa%2C%20tats%C3%A4chlich%2C%20ich%20stimme%20Kahart%20zu.%20%3CA%20href%3D%22http%3A%2F%2Fwww.yiigo.com%2Fguides%2Fnet-winforms%2Fhow-to-generate-pdf.shtml%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3EErzeugen%20eines%20PDFs%3C%2FSPAN%3E%3C%2FA%3E%20Bei%20einer%20geringeren%20Bildschirmaufl%C3%B6sung%20%C3%A4ndert%20sich%20der%20Ma%C3%9Fstab%20der%20Diagramme.%20Haben%20Sie%20also%20etwas%20Feines%20herausgefunden%3F%3CA%20href%3D%22http%3A%2F%2Fwww.yiigo.com%2Fsupport%2Fkb%2Fformats%2Fpdf%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%20PDF-Tools%3C%2FSPAN%3E%3C%2FA%3E%20um%20das%20Problem%20zu%20l%C3%B6sen%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-5059%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Skript%20zum%20Speichern%20als%20PDF%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-5059%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIch%20hatte%20ein%20%C3%A4hnliches%20Problem.Ich%20habe%20festgestellt%2C%20dass%20ich%20das%20Journal%20und%20die%20Diagramme%20drucken%20konnte%2C%20wenn%20ich%20die%20Fenstergr%C3%B6%C3%9Fe%20f%C3%BCr%20jedes%20Diagramm%20vor%20dem%20Hinzuf%C3%BCgen%20zum%20Journal%20festlegte.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBeispiel%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Egraph1%20%26lt%3B%26lt%3B%20size%20window(920%2C800)%3B%0AwinJournal()%5B%22Graph%22%5D%20%26lt%3B%26lt%3B%20Apend(Outline%20Box(%22Graph%22%2Cgraph1)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIch%20habe%20auch%20einen%20%C3%A4hnlichen%20Code%20wie%20oben%20f%C3%BCr%20die%20Seiteneinrichtung%20verwendet%20und%20musste%20auch%20die%20Fenstergr%C3%B6%C3%9Fe%20f%C3%BCr%20das%20Journal%20festlegen%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EwinJOURNAL%20%3D%20CurrentJournal()%3B%0A%2F%2FDefine%20setup%20information%20to%20save%20in%20pdf%0AwinJOURNAL%20%20%20%20%20%20%20%20%20%26lt%3B%26lt%3B%20%20%20%20%20Set%20page%20setup(%0A%20%20%0A%20%20%20%20scale(%200.7%20)%2C%0A%20%0A)%3B%0AwinJOURNAL%20%20%20%20%20%20%20%20%20%26lt%3B%26lt%3B%20%20%20%20Set%20Window%20Size(920%2C%201000)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEs%20hat%20einige%20Zeit%20gedauert%2C%20bis%20die%20Gr%C3%B6%C3%9Fen%20anhand%20der%20Diagramme%20korrekt%20waren.Ich%20fand%20es%20sehr%20wichtig%2C%20diese%20Anstrengung%20zu%20unternehmen%20und%20sie%20mit%20verschiedenen%20Bildschirmaufl%C3%B6sungen%20zu%20testen.Wenn%20Sie%20ein%20PDF%20mit%20einer%20niedrigeren%20Anzeigeaufl%C3%B6sung%20erstellen%2C%20%C3%A4ndert%20sich%20der%20Ma%C3%9Fstab%20der%20Diagramme.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-5058%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Skript%20zum%20Speichern%20als%20PDF%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-5058%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%20zusammen%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHier%20ist%20JSL%20(JMP10)%2C%20mit%20dem%20ich%20meiner%20Meinung%20nach%20das%20mache%2C%20was%20ich%20will%20...%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGr%C3%BC%C3%9Fe.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EwinJOURNAL%20%3D%20CurrentJournal()%3B%0A%2F%2FDefine%20setup%20information%20to%20save%20in%20pdf%0AwinJOURNAL%20%20%20%20%20%20%20%20%20%26lt%3B%26lt%3B%20%20%20%20%20Set%20page%20setup(%0A%20%20%20%20margins(%200.5%2C%200.5%2C%200.5%2C%200.5%20)%2C%0A%20%20%20%20scale(%200.8%20)%2C%0A%20%20%20%20portrait(%200%20)%2C%0A%20%20%20%20paper%20size(%20%22A3%22%20)%0A)%3B%0AwinJOURNAL%20%20%20%20%20%20%20%20%20%26lt%3B%26lt%3B%20%20%20%20%20get%20page%20setup()%3B%2F%2Fget%20setup%20information%0A%2F%2FSave%20as%20PDF%0AwinJOURNAL%20%20%20%20%20%20%20%20%26lt%3B%26lt%3B%20%20%20%20SavePDF(%22C%3A%5CDocuments%20and%20Settings%5CMy%20Documents%5CmyFile.pdf%22)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-5057%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Skript%20zum%20Speichern%20als%20PDF%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-5057%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIch%20h%C3%A4tte%20auch%20gerne%20eine%20L%C3%B6sung%2C%20falls%20jemand%20eine%20gefunden%20hat%20...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-5056%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Skript%20zum%20Speichern%20als%20PDF%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-5056%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%20Matt%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EIch%20habe%20ein%20%C3%A4hnliches%20Problem.%20Hast%20du%20eine%20L%C3%B6sung%20bekommen%3F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EGr%C3%BC%C3%9Fe%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EJJ%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
matt_p
Level II

Script for saving to PDF

Hi all,

I have a bunch of graphs that I would like to save to a pdf.

I currently have

Current Journal()<<Save PDF("C:\Documents and Settings\My Documents\myFile.pdf")

This will save my journal as a PDF, but it will be horribly out of scale and across multiple pages.

If I go through File -> Save As -> PDF then I can chose options for scaling/landscape etc.

Is there anyway to get these options for a script? I can't seem to find anything in the guide or index.

Thanks for your help!

-Matt

1 ACCEPTED SOLUTION

Accepted Solutions
carole
Level III

Re: Script for saving to PDF

Hi all,

 

here is JSL (JMP10) I use to do what is wanted I think...

 

Regards.

 

 

winJOURNAL = CurrentJournal();
//Define setup information to save in pdf
winJOURNAL         <<     Set page setup(
    margins( 0.5, 0.5, 0.5, 0.5 ),
    scale( 0.8 ),
    portrait( 0 ),
    paper size( "A3" )
);
winJOURNAL         <<     get page setup();//get setup information
//Save as PDF
winJOURNAL        <<    SavePDF("C:\Documents and Settings\My Documents\myFile.pdf");

 

View solution in original post

8 REPLIES 8
joeyjamboadl
Level I

Re: Script for saving to PDF

Hi Matt,

I have a similar problem. Did you get any resolution?

Regards

JJ

tova
Level III

Re: Script for saving to PDF

I would also like a resolution if anyone's found one...

carole
Level III

Re: Script for saving to PDF

Hi all,

 

here is JSL (JMP10) I use to do what is wanted I think...

 

Regards.

 

 

winJOURNAL = CurrentJournal();
//Define setup information to save in pdf
winJOURNAL         <<     Set page setup(
    margins( 0.5, 0.5, 0.5, 0.5 ),
    scale( 0.8 ),
    portrait( 0 ),
    paper size( "A3" )
);
winJOURNAL         <<     get page setup();//get setup information
//Save as PDF
winJOURNAL        <<    SavePDF("C:\Documents and Settings\My Documents\myFile.pdf");

 

KinKame
Level IV

Re: Script for saving to PDF

exactly what I needed as well ... JMP is so nice :)  ... my Christmas present

kahart
Level I

Re: Script for saving to PDF

I have had a similar issue.  I found that if I set the window size for each graph prior to adding it to the Journal, I was able to print the Journal and the graphs.

 

example:

 

 

graph1 << size window(920,800);
winJournal()["Graph"] << Apend(Outline Box("Graph",graph1);

 

 

I also used similar code as that above for page setup and also had to set the window size for the Journal;

 

 

winJOURNAL = CurrentJournal();
//Define setup information to save in pdf
winJOURNAL         <<     Set page setup(
  
    scale( 0.7 ),
 
);
winJOURNAL         <<    Set Window Size(920, 1000);

 

 

It took some time to get the sizes correct based on the graphs.  I found it is very important to go through this effort and to test it with different display resolutions.   Generating a pdf with a lower display resolution will change the scale of the graphs.

arronlee
Level I

Re: Script for saving to PDF

Yup indeed, I agree with kahart. Generating a pdf with a lower display resolution will change the scale of the graphs. So have you found out any fine PDF tools to deal with the problem?

none1
Level II

Re: Script for saving to PDF

Hello,

I always do save as ---> PDF and so on.

You can make adjustments to the size of the page, however I have to agree, this is a very bad interface to generate business suitable pdfs.

I hope JMP will look at this issue seriously.

Regards

mattyclown
Level I

Re: Script for saving to PDF

I do not think a 3rd pdf creating tool can offer any proactical help. Maybe you can have a look at following post which uses code to handle the scaling issue of image in pdf.  Anyway, we are looking forward to the expert to offer some guidance.

r - saving graph in pdf or png scaling issue - Stack Overflow

Recommended Articles