2017-01-11 12 views
1

summernoteエディタを使用していて、PDFドキュメントからコピーして貼り付けたときに書式設定が欠落しています。PDFからコピートしたときに書式が設定されない理由

この問題は、Googleドキュメントやonedriveドキュメントなどの他のすべてのエディタにあります。

しかし、msWordはPDFドキュメントからコピーして貼り付けたときに書式設定を保持します。

PDFからコピーしたときにクリップボードにHTMLタグが保持されないため、MS WORDがどのように処理するのか理解していますか?

貼り付けたデータをクリップボードで確認しました。 divタグのみを含む以下の結果が示されました。

<div>This is Heading1 Text</div><div>This is a regular paragraph with the default style of Normal. This is a regular paragraph with the default style of Normal. This is a regular paragraph with the default style of Normal. This is a regular paragraph with the default style of Normal. This is a regular paragraph with the default style of Normal.</div><div>This is a Defined Block Style Called BlockStyleTest</div><div>This is more Normal text.</div><div>This is Heading 2 text</div><div>This is more Normal text. This is bold, this is italic, and this is bold italic. This is normal. This is in a defined inline style called InlineStyle. This is normal. This is red text. This is normal.</div><div>This block is centered.</div><div>This is left-aligned.</div><div> First item of bulleted list.</div><div> Second item of bulleted list.</div><div>Second paragraph of second item of bulleted list.</div><div> Third item of bulleted list.</div><div>o First item of third item’s nested list</div><div>o Second item of third item’s nested list</div><div> Fourth and final item of main bulleted list.</div><div>This is Normal text.</div><div>1. First item of numbered list.</div><div>2. Second item of numbered list.</div><div>Second paragraph of second item of numbered list.</div><div>3. Third item of numbered list.</div><div>Here is a BMP picture:</div><div>Here is a JPEG picture:</div><div>Here is a PNG picture:</div><div>Here is a table:</div><div>New York Boston Detroit</div><div>Baseball Mets Yankees Red Sox Tigers</div><div>Hockey Rangers Islanders Bruins Red Wings</div><div>Football Giants Jets Patriots Lions</div><div>Here is an embedded Excel spreadsheet:</div><div>pre- post- pre- postdogs</div><div>1234.43 0.33 354.30 777.00</div><div>cats 432.00 -432.20 654.45 333.00</div><div>turkeys 3.30 4.66 34.65 132.10</div><div>fish 52.55 55.33 37.88 31.50</div><div>total 1722.28 -371.88 1081.28 1273.60</div><div>2001 2002</div><div>https://en.wikipedia.org/wiki/United_States</div><div>This is more Underlined text.</div><div>This is more Strikethrough text.</div><div>Test superscript text. This is superscript texts.</div><div>Test subscript text. This is subscript texts.</div><div>Here are some special characters -!”&amp;’(*)+’./:;?_ÈÓ 12\</div><div>This concludes our test.</div> 
+0

あなたの質問はすべての場所にあります。まず、PDFからコピーされているもの。第二に、明確にするために、PDFテキストがコピーされ、Summernote、Google Docsなどに貼り付けられたときに、PDF文書のコピーされた選択項目にHTMLタグ(または他の 'フォーマット')が失われている?第三に、クリップボードに実際のクリップボードのデータが入っていることを確認したとか、これがWordに貼り付けられたものなのですか? –

+1

混乱にごめんなさい。 1.テーブル、ヘッダー、色付きテキストなど 2.はい 3.私はjavascriptでアクセスする実際のクリップボードを意味します(e.originalEvent.clipboardData.getData( 'text/plain')) – anoj

答えて

1

PDFがPostScriptを使用して、それはあなたがPostScriptから「Summernote」に問題のコピーと貼り付けを持っているようだ、などMS Wordは明らかにポストスクリプトで素晴らしいプレーするために長年にわたって時間を費やし、情報という言葉がなければなりませんそれがPostScriptであることを認識するために使用し、ペーストを正しく処理します。

Btw、PostScriptはそれがはるかに多くのものです。

背景情報: https://youtu.be/48tFB_sjHgY https://youtu.be/guXgBe2wvEA https://youtu.be/-cFOsAzigyQ https://youtu.be/S_NXz7I5dQc

回避策: あなたはWordから直接PDFを開くしようとした後、コピーしSummernoteに貼り付けができます。 (私はこの作品を確認していません)

結論: あなたの問題を解決する方法は表示されません。受信プログラム、あなたのケースSummernoteなどに依存します。

+1

ありがとうございました。 – anoj

+0

あなたは大歓迎です、アップヴォートを入手できますか? –

関連する問題