Pasting PDFs (and LinkBack items) no longer showing a preview

I’m trying to paste PDF items from LaTeXit and OmniGraffle, but they just show up without any preview as a pasted graphic. PNGs show up correctly, but when I copy and paste from LaTeXit or OmniGraffle, it doesn’t show anything. I’m on the latest update OmniOutliner-4.4.1.

This used to show the equation from LaTeXit or OmniGraffle, with the option of showing the preview or not.

Are you using the latest beta release of LaTeXiT? I had problems with LinkBack (using Curio) in the release version. It had an outdated LinkBack framework. The developer fixed it for the beta.

http://www.chachatelier.fr/latexit/latexit-beta.php


JJW

Thanks. I just tried the beta and it seems to have the same issue unfortunately.

I don’t have LaTeXit installed, but using LinkBack with OmniGraffle is working correctly for me. What format of attachment are you ending up with here? Your screenshot is offering to open it with TextEdit which seems odd. You can drag the attachment out to the desktop to see what it is.

What are you setting in LaTeXiT to store as a preference during the copy? How are you generating the content to paste? Is this the sequence that you are using?

  • Create the equation in LaTeXiT
  • Compile the equation (command-T)
  • COPY (command-C)
  • Go to OmniGraffle …
  • PASTE (command-V)


JJW

When I paste an OmniGraffle object in, it’s literally an extensionless file:

macbook% ls -la | grep Pasted
-rw-r--r--@  1 macbook  staff     10077 Feb  9 14:12 Pasted_Graphic_1

When I add the PDF extension to it, it opens correctly.

Technically I’m using Command+Option+C since that copies the output to clipboard with the default format:

But yeah basically as you said.

What happens when you just copy (command-C)?

I’ve never had to resort to command-option-C between LaTeXiT and Curio.


JJW

It’s possible another app has defined a different UTI for pdfs that is causing this behavior. If you go to https://developer.apple.com/downloads/ and download the Auxiliary Tools for Xcode, it contains an app called Clipboard Viewer. You can sign in with any Apple ID to reach the download.

Once that’s downloaded, copy something from OmniGraffle and then launch Clipboard Viewer
On the left it will list all the data types on the pasteboard, the first one should be com.omnigroup.OmniGraffle.GraphicType.
Post a screenshot of that whole list.

Here’s the whole list.

Here’s the com.omnigroup.OmniGraffle.GraphicType type.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Color</key>
	<dict>
		<key>b</key>
		<string>1</string>
		<key>g</key>
		<string>1</string>
		<key>r</key>
		<string>1</string>
	</dict>
	<key>DocumentSettings</key>
	<dict>
		<key>ApplicationVersion</key>
		<array>
			<string>com.omnigroup.OmniGraffle6</string>
			<string>169.5.0.253125</string>
		</array>
		<key>CreationDate</key>
		<string>2015-12-10 19:22:00 +0000</string>
		<key>Creator</key>
		<string>MacBook</string>
		<key>FileName</key>
		<string>Diagrams</string>
		<key>GraphDocumentVersion</key>
		<integer>12</integer>
		<key>ModelIndex</key>
		<integer>0</integer>
		<key>ModificationDate</key>
		<string>2016-02-10 01:32:43 +0000</string>
		<key>Modifier</key>
		<string>MacBook</string>
		<key>SheetTitle</key>
		<string>Canvas 1</string>
	</dict>
	<key>GraphicsList</key>
	<array>
		<dict>
			<key>Bounds</key>
			<string>{{339.5, 34}, {164, 78.5}}</string>
			<key>Class</key>
			<string>ShapedGraphic</string>
			<key>ID</key>
			<integer>20</integer>
			<key>LayerIndex</key>
			<integer>0</integer>
			<key>Style</key>
			<dict>
				<key>shadow</key>
				<dict>
					<key>Draws</key>
					<string>NO</string>
				</dict>
			</dict>
			<key>Text</key>
			<dict>
				<key>Text</key>
				<string>{\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf340
{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;}
{\colortbl;\red255\green255\blue255;}
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0

\f0\fs32 \cf0 hello}</string>
			</dict>
		</dict>
	</array>
	<key>Layers</key>
	<array>
		<dict>
			<key>Lock</key>
			<string>NO</string>
			<key>Name</key>
			<string>Layer 1</string>
			<key>Print</key>
			<string>YES</string>
			<key>View</key>
			<string>YES</string>
		</dict>
	</array>
	<key>Origin</key>
	<string>{0, 0}</string>
	<key>Scale</key>
	<string>No scale</string>
	<key>ZoomLevel</key>
	<real>1</real>
</dict>
</plist>

Hmm, well the PDF format appears with the correct UTI. Not sure why you have an extra format between the two PDFs though. Is that format readable?

What happens if you select some objects in OmniGraffle and use Edit > Copy As > PDF. Then paste in OmniGraffle. This should create a LinkBack object within OmniGraffle. You can also try pasting this to OmniOutliner and see if there’s any different result.

You mentioned PNGs show up correctly, does LinkBack work with using PNGs?

What happens if you select some objects in OmniGraffle and use Edit > Copy As > PDF. Then paste in OmniGraffle. This should create a LinkBack object within OmniGraffle. You can also try pasting this to OmniOutliner and see if there’s any different result.

Yes, this works - it creates a LinkBack object correctly. However, pasting the same object into OmniOutliner still shows the “Pasted_Graphic”.

You mentioned PNGs show up correctly, does LinkBack work with using PNGs?

In OmniGraffle, I did Edit > Copy as… > PNG and pasted it into OmniOutliner. LinkBack is preserved.

Hmm, well the PDF format appears with the correct UTI. Not sure why you have an extra format between the two PDFs though. Is that format readable?

The dyn file looks like this:

%PDF-1.3
%Äåòåë§ó ÐÄÆ
4 0 obj
<< /Length 5 0 R /Filter /FlateDecode >>
stream
x.e.ÍjÃ@..ï~.9¶.++­´?×.^z.1ô\Ls(¤.æý¡Z'ö.Âb¼...ôY..pAðÃVQ+þ¾ñ._ìöWÆ|./ç:.£R.*(.B1¿.ÁIÉÌ"Ú[£È°)þµ. ÝÆF5.®ð¨ Ä..£P
ÊÁ`æ.É.4.R©ê..çh.%ÕbXó»²ö.͸v:Ì=..S..{.]y.pÆÉÇ.ðçç.d...ª.ãÞ©ñr.½é6.TÅ|.$ï±q..TY.s.j7N".ÔRÙ.A¬.qM.¾\($..Jbòd§..¸¤...¬.£sN2H÷±.¥.±.oÂZ.ï®Þ¥..{öÀU(fq.Z¿+OÓÍ8ú
ùºH[.._..2¹Rbå.mcráÁ.½M¾9wv	£...£.S..é.Ý4µ½.NxùzÅô.÷Ék.þ.,_..
endstream
endobj
5 0 obj
331
endobj
2 0 obj
<< /Type /Page /Parent 3 0 R /Resources 6 0 R /Contents 4 0 R /MediaBox [0 0 159 99]
/Rotate 0 >>
endobj
6 0 obj
<< /ProcSet [ /PDF /Text ] /ColorSpace << /Cs1 7 0 R /Cs2 8 0 R >> /Font <<
/TT1 9 0 R >> >>
endobj
10 0 obj
<< /Length 11 0 R /N 3 /Alternate /DeviceRGB /Filter /FlateDecode >>
stream
x..U[..U.þ.9É
»ÎÓÚÕ-¤C½t)»K¶.Ý¥´.[.´k.²ÙÕ.A³..dÌì$ÎLÒ.}*.â.«¾IA¼½-..ÒzÁÖ.ûR©PVwë"(>´xA(ôE·ñ;.d&Yj.eÏ|óýßùoç..¢.µB½®û.¢%Ã6sɨòÜÑcÊÀ:ùé!.¤Q.,¨V=.ÍÎ.~B+®ý¿[?.O0W'îlïWo¹.,rK%òÝ.¾V´Ô%à.D.³jÝ´...ÁO.·ë....M$.ü¢Àå6....Ûø5G.ÏÅ 9.,«.B.x.x|±./÷àv.PÀO..ÜÔTEô"kÖJ.Î.C{¹.¹Gy7¸¤7P³óÛ.uȪÎ.Æu.µ¿R,Ä...^Q..9àG.¯5µ.L.ß®ÛÑ.ðcDþ..ê|.x7pªd.....¿Yi¤ºø.S.ü³à·..ÆXÌ.éì]S­.zI;Áß®ð´èo.HR4;....é.YË	=r.JE.O...¿^­..9À§ô.Õ..¼ÈgíT%&ò.üå.
.²À£À¿r=)ô.%ý[·³..XÈÐ3".b±8·.zá..ìJ>..q.n.ùÎ^¶\Ò.¦;úO*fJðbﵺîÌ(r.øÍFNÔ.X.É..H.Ãg Ë.yÑO..´à+.§.-bUÉ MR(GI.âZ'...i¤.á°r0.w]Í.³Ï¢*x...ÍÂ.u.í.]­Be°.]w´*ÅB.Q..*ô.Ø.ëS¡.î.àÊ.ã§.Ë.....aa¶..ûØ,ÛϦÙ.)ì)ö4;Àâ`gØ>×w.{º..|n JÛÏË.È.Ý.j¿..m*`ý...Y®.¾®,.6Æ<Ë.ó.M½òÆß=½Ò°³ê*&ú:zä^=.ü.¸.Xź.Øp}(....ø[Go¼Zj.½ÓeqR.N´Ö§Ûz.]U..êÎÎ%tACͼ§æ.^..N.ù .m..{þêÐ¥Ó%cyÔcE.ø«.[.:3î±á.Ã..WÃï.?...½-}*}%..>..."]..J_KßJ.K_¸ú»Í.{ö$2.s%ò.ÓÕ­°·×.X9*o...ãò.ùQyÖU)ò.<%§ä]°lwÏÍ.o¥·rôå(¢uûsçXâYÑ\O8.ßý..Í.Ø7.óÈX£ãði¢ßbÞ.:	mï.ש..Ø.Ko.îi1ó]ßÁD0....Ü..	N..	Ü}..»`.Á.èÍ.óá*ú*å6?!¾'.«ÕO.Z¹b+{Âá'..>}\I.êä¸RÐuÅ1Y.É-n6yq.ÄwSì#º.s¾.¾mW<Î~.h._x÷}ïqÇ.D+.ÑÈã.7.wå.ï..{Bm.Ͷ?òù¾#²J{÷8÷¾¡(Þ_?·Z7ñ..x.hóÍVë.÷[­Í.à..è.þ. .|U
endstream
endobj
11 0 obj
1079
endobj
7 0 obj
[ /ICCBased 10 0 R ]
endobj
12 0 obj
<< /Length 13 0 R /N 1 /Alternate /DeviceGray /Filter /FlateDecode >>
stream
x..U]h.U.>»sg....´.-´.?m	é2.V..µÛMºI.·ëfS.*Êtv6;Ídf..Ý&¡O¥à...é« >Æ..¶*6/ö¥¥Å.J5.
.Z. (}Rð;3ÛdvA2Ã.ùî¹ç.{Îwî¹.¨ëoÝóì´J4ç.~¡..>9}JíºMiR¨.ðèFàåJ¥	Æ.ë.üo..Þ¥.Kîìg[íc[öäª..к.æV.c.(¥.ej.ç.D]. .<.z.o.?9[)ç.×..Ö\@zª`:¦o.jÁ×.Ô.ïÖ,;éëVãlcËgÎn°¯üìFë.f'Çñï.Ï.Lgj.x.ð.¡.0î.¾Û´N.c.N{á.r¬.Î6f§r-ùÉ..tª%¿Po.2Î.¥..ë.7...^uN..·ô×gÝq¶ÓC$õ.Aþ.ð³ÀZÝ.ã<©À.ß-³>Ëê9<.ü2ð%+.«.þôCÐ.d9° Åz.ýÄZ"{F?V.Þ.|È´.¼.ì....Øæ ð¼c.y-Ä...A./b.?.õÊh¬/§C¿Âs.&.÷Ô¬£cÀàD.­û£,.?rèÙÑÞz.xÉo.9ö=Àkº?R..ÍÌcU}.y~.x.N¤t2É¥Óø.äп.7 ...òÈÇX.}.
ÐpÐ|ô.h..tZ.*%´LôX'.£R.=.f¢YA.ØÊý¨oP~קÔ.´Në.Ö.^£_"É<ýJsèç!m`l¦Ãn.^8´..Ø.¶ù eÓ.Û.&.G;(&Ä+bP..*^..Å!1.é.8.Í.½OúÎ~>Ø°ô.ÖMú¾..B¬gÃ3.¬p4.<ø.ëÎF.	¶.îhìó¼.Þ?ï¿c.·>ø³.½.ú1'¿Á¢.k&%æ^?÷MOÂCuE|õÖ.îëçèx2KQÞª.Y.×äûò
¾÷äÕ¤.ùgy.カ\=Ê...¹Í!F;.ÍAÎ<.Q´qÆ.À!¸©Esö·YL²é¶b´`ÉB..«¸.Ë	óÃ<·±Rs.îð¼·?c6Í÷...t¾O»¬­k.h?j.h+ÚÇ@¿K.J_JßJW¤«Ò.R¥kÒ²ô.ô½ô¹ô5z_@º,]éØIqì.».~Æ{Öhí0f.³..óÂÚÌ
K.ñw.c.ù3¡Õ^..».c-å.²SyF.Vv+Ï).J¯r@9¬lW.Ðú.Qe/Fvn°dc=Î....g.¦#®â<±Wu°çÃK.ï¦_\ÃÖ.5ØI=..ÙÚ¦.¯.W¿.Uc¼;]..:M!b.Î"r.:..'ªþÎÙ\.85Roâ.°Ä.Ñ/ÆZ5...P.ãmõ8ÈU..É.gr¤fz3C.þÌ1ÆQ¬Ñù.Ù.Ñ!|G.Þ3Ë1..5Äg.ï.æ¨	l£.[+4çqß.å]oÁ·fê¡: i/©9\¯¦:æ.Ù>U·m5.
Tß.L¿iV³Äw7Ï#úëõèNNm»a4üf,£Tê&Ñ.·..4
endstream
endobj
13 0 obj
1116
endobj
8 0 obj
[ /ICCBased 12 0 R ]
endobj
3 0 obj
<< /Type /Pages /MediaBox [0 0 612 792] /Count 1 /Kids [ 2 0 R ] >>
endobj
14 0 obj
<< /Type /Catalog /Pages 3 0 R >>
endobj
9 0 obj
<< /Type /Font /Subtype /TrueType /BaseFont /DNVZHY+HelveticaNeue /FontDescriptor
15 0 R /Encoding /MacRomanEncoding /FirstChar 97 /LastChar 97 /Widths [ 537
] >>
endobj
15 0 obj
<< /Type /FontDescriptor /FontName /DNVZHY+HelveticaNeue /Flags 32 /FontBBox
[-951 -481 1987 1077] /ItalicAngle 0 /Ascent 952 /Descent -213 /CapHeight
846 /StemV 0 /Leading 28 /XHeight 634 /MaxWidth 2225 /FontFile2 16 0 R >>
endobj
16 0 obj
<< /Length 17 0 R /Length1 2312 /Filter /FlateDecode >>
stream
x.­VKL.W.½ïùÏ..ùÚÀ..ó±.ù..A..Ô¦P...6õD¥..æSA.RJé¢..Tª.]TJ$ª,º¨Ô..M5ÐEP³HUµjºgÑ]»ì.t. çÍX£.Ò.U.éÌ»÷¾ûî.{.ßaãÖ.9*£m²Qr~-»NÆåø.Kãüæ.lúì[¬õ.ëKkE..ÈÞ±´úñ¢é;}Düëå\vÁôé)ÖÁe.L.õcm]^ÛØ2}Ç.XÝ«7ç.ûÎ2øεìVñùt._~?».3óÝ¿cíX¿ùÁFÑ×..V®.Ï2ð/.}ó.ûª±.iæT.1X.î...É.K\Í"dï@¿ÌØGÎ.­.¿^¯.}Â$.àEß½zC,ôÛ.]SO§.[\.í.p=Å
F].~.¡.û>ö·]..JÆ.â.ëä.°=.àT.a.ð¸1.¢.µP5R..z..×O.ö@ÒNþ.NLN.²R.Ò©..N.A`.MÓ5.ÒÉ..r..ñ.HÂvtZ'ÏLæ>c.k:;¹­§¨i.lm×ßíB©¨,§WR.v...".V`Ù¢òDÁ..¸.Q59/ç§.òò.¼.](ØCÆ..\^ë..4.YÁýÍ.RHj~ËÌiÚ.êØE..Az^C.÷..°.¡î#$9¢ÓrÁÖ6.y#SØNù.É.æW.9]Ø.É.öS~EÓ.å´..±hßäì.gg.ûn³Ê,j ..Ï..ðx.RØÏçýytbDTEgT. S.c.¥u..É.­¤ªøE@UT.<´.j{¢Ó³.4.(.IÉ¿$¥Ô3..ZD.[.z¥.¤å/IÒ.óHZy.I«,¦§$.À¹JHê=[Rõ..Z
'ÏPxÛTxû..«O)ì{±Â5.o.¬.Û.Cáº.¤pýy.n8.Â..ÓS
ûÁ¹Q(.°.Nú.d½´Pxû¹W.þó.þ¿.7=#9;¤8o VÌ.sî.¦¾. ÊZ.¢Iv..Nqbìgþ#Æ..rb.áç×.Y.¸«ð{|.tï"Ñv.hÕ.æ.°<....Î`.tûE°dL+.."à ».Øq.OÁ..,ÌÈÃ.^¦HJµ¤Hlçø..../ñ/.îð.£aþ..­'Ox	.¨..²w..ï).råT.+.«..Nuàæ.7G÷.	Ý%¨.h...	à*°.l.î¹..º.ã.ÀçtJ...>v1¥E7uð{..N½¨Û.þÃxFÊê3$Ú
.Ûê...¾0VÀ-.n.ØC..B.wX§.j.Ð8(|.cG8s í.Q.t.	`.È.ËÀ.à.Ï..´.`.£FLÔ.ðW.A..µ.CÀkÀÛÀ.ð.`ôú).»..ÛC_&.=êµ8½ò¸§7äT.m..L.Æø@....³.ôǸ.tºÔ1[¼¯.×H¾ÚxßP{.£Æ×Ìã}c|..Ô¶+íêÜ :.ó7÷.+êxO Féô.NÚÞâ­£.¢j:.tùJ+óUýÃ#±&Éßê..¶yyy(..U..Ú£	Õët¹Ê.ê.A¯³s¸çb§·¤%ÑuüwsÀñ¨¬Ôåñ.ä.&¯»Níôâå.iã:¹G}¦õÜ]ì§..#oñûì..ÑÔå«×&µÈdnu3·±2.½.Ã.@ô.e...
endstream
endobj
17 0 obj
1228
endobj
18 0 obj
(Untitled)
endobj
19 0 obj
(Mac OS X 10.11.3 Quartz PDFContext)
endobj
20 0 obj
(MacBook)
endobj
21 0 obj
(OmniGraffle 6.5)
endobj
22 0 obj
(D:20160214193348Z00'00')
endobj
1 0 obj
<< /Title 18 0 R /Author 20 0 R /Producer 19 0 R /Creator 21 0 R /CreationDate
22 0 R /ModDate 22 0 R >>
endobj
xref
0 23
0000000000 65535 f 
0000005257 00000 n 
0000000446 00000 n 
0000003183 00000 n 
0000000022 00000 n 
0000000427 00000 n 
0000000559 00000 n 
0000001870 00000 n 
0000003147 00000 n 
0000003316 00000 n 
0000000667 00000 n 
0000001849 00000 n 
0000001906 00000 n 
0000003126 00000 n 
0000003266 00000 n 
0000003494 00000 n 
0000003735 00000 n 
0000005053 00000 n 
0000005074 00000 n 
0000005101 00000 n 
0000005154 00000 n 
0000005181 00000 n 
0000005215 00000 n 
trailer
<< /Size 23 /Root 14 0 R /Info 1 0 R /ID [ <196a78e73f7749c57e45788400ee82cd>
<196a78e73f7749c57e45788400ee82cd> ] >>
startxref
5377
%%EOF

One other thing: the work-around I am currently using is to copy the image in LaTeXiT or OmniGraffle, then open it up in Preview (New from Clipboard), save it to my desktop, and then drag the file from my desktop into OmniOutliner. I have no idea why it works. Of course, we lose LinkBack this way.

Another thing: when I copy as PNG from LaTeXiT, I can paste correctly in OmniOutliner, preserving LinkBack.

Okay… here’s something crazy. The only instance where this actually shows if I’m in text editing mode and paste the item. That results in the non-previewed “pasted graphic” file.

But when I exit text editing mode and paste, it works.

Hard to explain. Here’s a video demo: https://vid.me/kLx7

So that dyn format appears to be another PDF copy.

That it works when pasting as a new row is interesting. I’ll have to have an engineer take a look at what’s different between those two situations. Hopefully this gives you a usable workaround for now though.

Exactly the SAME symptom. Anything copied as PDF, either from Omnigraffle or Latexit, to Omnioutliner has no preview.