Welcome, Guest. Please Login
Tinderbox
  News:
IMPORTANT MESSAGE! This forum has now been replaced by a new forum at http://forum.eastgate.com and no further posting or member registration is allowed. The forum is still accessible via read-only access for reference purposes. If you wish to discuss content here, please use the new forum. N.B. - posting in the new forum requires a fresh registration in the new forum (sorry - member data can't be ported).
  HomeHelpSearchLogin  
 
Pages: 1
Send Topic Print
Printing a note to PDF using cmd P. (Read 917 times)
James Regan
Full Member
*
Offline



Posts: 22

Printing a note to PDF using cmd P.
Jul 05th, 2016, 5:04pm
 
I am using 6.6.1, and I would like to be able to print the contents of a note to PDF minus the truncated text. Is there a way to set up a document to enable this capability?
Back to top
 
 
  IP Logged
Mark Bernstein
YaBB Administrator
*
Offline

designer of
Tinderbox

Posts: 2871
Eastgate Systems, Inc.
Re: Printing a note to PDF using cmd P.
Reply #1 - Jul 5th, 2016, 5:09pm
 
I'm not sure what truncated text you have in mind here.  But if you select the text pane and choose ⌘-P, you can print the text to PDF in the usual way.
Back to top
 
 
WWW   IP Logged
James Regan
Full Member
*
Offline



Posts: 22

Re: Printing a note to PDF using cmd P.
Reply #2 - Jul 5th, 2016, 7:36pm
 
It occurs every time I attempt print a note containing a paragraph or two  of text. The PDF file that gets generated displays truncated text down the entire right margin. I would be happy to send you a sample PDF.  I went back to one of my samples and noticed that the left margin is wider than the right margin. Can a TBX user modify margin width?

Back to top
 
« Last Edit: Jul 5th, 2016, 8:02pm by James Regan »  
  IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Printing a note to PDF using cmd P.
Reply #3 - Jul 6th, 2016, 4:01am
 
From v6.0, the text uses essentially the same methodology for RTF layout that is seen in TextEdit. The old $LeftMargin and $Right margin exist in (old(er)) TBX documents only for use with pre v6 Tinderbox.

By default, Tinderbox $text in a new note has a fixed left and un-set auto-wrapping right margin. However, if you copy/paste from an RTF source that does has a fixed page width/margin, the pasted data will respect the source's** formatting and may result in a fixed note text width and/or right margin. Each paragraph in v6 $Text may have a discrete style (font, width, tabs, etc.). The cocoa framework's supplied management for this is pretty lousy and poorly documented.

The easiest want to spot such non-default page style is to turn on the note's text pane ruler ([Opt]+[Ctrl]+R) and click in each paragraph noting margin/tab settings.  

If you have odd margins like this as a result of pasting, select the $Text (or affected sections within it) and use menu Format -> Style -> Reset Margins.

** To strip all such formatting in a paste, use 'Paste and Match Style' ([Cmd]+[Opt]+[Shift]+V). This results in all formatting (colour, fonts, margins, tabs, line spacing, etc.) being stripped. Only the text characters are pasted (including white space and line breaks).

Pro tip: when pasting into Tinderbox from other apps always use Paste and Match Style unless you definitely know you want any source format. It's often easier/quicker to stick back in a bold heading than it is spending hours trying to fix imported non-matching paragraph styles (for which the controls - derived from the Apple frameworks they use - are not very good IMO). The latter's not Eastgate's fault, the frameworks control what's possible and, in the round, aide lots of other good things unrelated to margins and printing: it's a matter of balance. So, if importing, try to get in the habit of using Paste and Match Style!

Edit: I've updated the aTbRef page 'Working with $Text: support for styled text'. Remember in most cases you probably want 'Paste and Match Style' instead of 'Paste' when importing text via a copy/paste
Back to top
 
« Last Edit: Jul 6th, 2016, 4:13am by Mark Anderson »  

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
James Regan
Full Member
*
Offline



Posts: 22

Re: Printing a note to PDF using cmd P.
Reply #4 - Jul 6th, 2016, 12:54pm
 
Thanks for providing these details. The overall guidelines on cut-and-paste and margin settings are helpful. I will spend some more time reviewing the notes. These notes were imported from Simplenote.

Best wishes,

James
Back to top
 
 
  IP Logged
James Regan
Full Member
*
Offline



Posts: 22

Re: Printing a note to PDF using cmd P.
Reply #5 - Jul 17th, 2016, 12:47am
 
I tried the recommendations listed above, and my success rate has not produced the desired results.  So far, resetting the margins, paste and match style, and checking for irrelevant tabs fail to correct the lopsided margin issue. I also created a new document, added a few new notes with cut-and-paste text using "paste and match style," and the results are the same. Any other suggestions as to what might be the culprit?
Back to top
 
 
  IP Logged
Mark Bernstein
YaBB Administrator
*
Offline

designer of
Tinderbox

Posts: 2871
Eastgate Systems, Inc.
Re: Printing a note to PDF using cmd P.
Reply #6 - Jul 17th, 2016, 8:27am
 
Please send a small example document so we can take a look.
Back to top
 
 
WWW   IP Logged
Pages: 1
Send Topic Print