<div dir="ltr"><span id="docs-internal-guid-95eeaebb-43e2-b6fb-3b55-310b40b2b6b0"><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(0,0,0);font-family:Arial;font-size:15px;white-space:pre-wrap;line-height:1.15;background-color:transparent">I am converting PDF files to fixed layout ePub files, which mean mainly converting PDF to HTML.</span><br></p><br><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">I noticed something strange.</span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><br></span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">When converting PDF files produced by Scribus, the HTML displays very well, but when I copy/paste a selected text, there is no “spaces” in the text!</span></p><br><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">E.g.:</span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="white-space:pre-wrap;line-height:1.15;color:rgb(0,0,0);font-family:Arial;font-size:15px;background-color:transparent"><br></span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="white-space:pre-wrap;line-height:1.15;color:rgb(0,0,0);font-family:Arial;font-size:15px;background-color:transparent">- On the screen you see: “The red car was behind the house."</span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="white-space:pre-wrap;line-height:1.15;color:rgb(0,0,0);font-family:Arial;font-size:15px;background-color:transparent">- The copy/paste gives: “Theredcarwasbehindthehouse.”</span></p><br><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">I found a PDF file produced by InDesign, and with that file the problem is not there.</span></p><br><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">After analyzing with Acrobat the fonts embedded in the PDF files, I noticed:</span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="white-space:pre-wrap;line-height:1.15;color:rgb(0,0,0);font-family:Arial;font-size:15px;background-color:transparent"><br></span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="white-space:pre-wrap;line-height:1.15;color:rgb(0,0,0);font-family:Arial;font-size:15px;background-color:transparent">- Indesign: fonts contain the <SPACE> (code 20 in hexa, 32 in decimal).</span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="white-space:pre-wrap;line-height:1.15;color:rgb(0,0,0);font-family:Arial;font-size:15px;background-color:transparent">- Scribus: fonts does not contain the <SPACE> (code 20 in hexa, 32 in decimal).</span></p><br><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">I am using PDFTron to convert PDF files to ePub files. When I use the pdf2htmlEX tool (available for Linux and Windows), the problem is not there.</span></p><br><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">It seems that PDFTron will only insert a space in the text when the code 32 is in the text.</span></p><br><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">How comes there is no spaces with code 32 in the PDF produced by Scribus?</span></p><br><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">I know there is a lot of different spaces: U+0020 SPACE, U+00A0 NO-BREAK SPACE, U+2000 EN QUAD 1 en (= 1/2 em), U+2001 EM QUAD 1 em, etc.</span></p><br><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Thanks,</span></p><br><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Eric</span></span><br></div>