twoscoops / two-scoops-of-django-1.11

The issue tracker, changelog, and code repository for Two Scoops of Django 1.11
https://www.twoscoopspress.com/products/two-scoops-of-django-1-11
408 stars 68 forks source link

Can't search within the PDF #126

Open oesah opened 6 years ago

oesah commented 6 years ago

I am not sure, if that behavior is intended, but I cannot find text in the PDF if I search. When I copy text, the paste becomes something unreadable such as ...#_-.

Without a search functionality, it is very difficult to navigate to specific information.

OS OSX 10.11.6 (15G1611) (German) Windows 10 (German)

PDF Viewers Preview.app Adobe Acrobat Reader Chrome Browser

PDF Version Django Two Scoops 1.11.pdf

pydanny commented 6 years ago

Odd, I can search without a problem.

As for copy/pasting of text, that's a limitation of the PDF format and is all on @adobe. That's why we publish our code examples here.

oesah commented 6 years ago

I tried on Windows 10 too. May it be an issue with my computer having German as the first language? Maybe some encoding problems? I'll investigate a little further.

oesah commented 4 years ago

@pydanny Unfortunately, this problem still persists :/ When I search for any word, no results are shown. Any ideas what could be wrong? I am using Adobe Acrobat Reader 2019.021.20058 or the Mac Preview app. Both cannot find anything.

pydanny commented 4 years ago

I have some German friends I'm asking about the problem.

oesah commented 4 years ago

@pydanny Any luck? I am back to reading the book for unit testing and wanted to copy a line of code and got this: 􀀮􀀠􀀧􀀡􀇡􀀜􀀮􀀮􀀠􀀭􀀯􀀆􀀬􀀰􀀜􀀧􀀮􀇿􀀭􀀠􀀮􀀫􀀪􀀩􀀮􀀠􀇡􀀮􀀯􀀜􀀯􀀰􀀮􀇾􀀞􀀪􀀟􀀠􀇢 􀇏􀇍􀇍􀈀. I guess it's the same issue that hinders me searching the doc.

oesah commented 4 years ago

While I'm here, it would be awesome to have some information on testing class based views properly. There is very little and outdated data on the web on how to test CBVs properly. For instance, do I make actual requests to that view when unittesting or do I call the method of the view by instantiating it with a request and other args?

pydanny commented 4 years ago

Rather than bury it in this issue, could you open a new issue for your CBV request at https://github.com/feldroy/two-scoops-of-django-3.x/issue?