xaml - Can't copy from PDF file generated from UWP app -
i'm trying print uwp app , following link
while saving pdf file, it's printing normally. i'm able copy letters well. when i'm pasting somewhere else, printing this: ""
i've tried different fonts well, no help.
here xaml i'm trying print:
<grid x:name="printablearea" background="white"> <stackpanel x:name="textcontent"> <textblock textalignment="center" fontfamily="arial" fontweight="bold"> test </textblock > </stackpanel> </grid>
how fix it?
whatever using create pdf unable create pdf file tounicode cmap.
pdf files embed subset of font in order keep size down. means encoding applied font non-standard (and isn't ascii anyway). example if have text "hello world" character codes assigned "h" = 1, "e" = 2 , on.
if copy , paste that, 1, 2, 3, 3, 4, 5, 6, 4, 7, 3, 8 appear binary.
a pdf file may contain tounicode cmap maps character code unicode code points, , pdf viewer application can use copy unicode code points instead of character codes, permits sane copy/paste. optional. because original design decisions around pdf create portable viewer, pdf file should same on consumers, designers didn't have editing or copying in mind.
Comments
Post a Comment