From sec@42.org  Wed May 11 13:21:38 2005
Return-Path: <sec@42.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id A8B6316A4CE; Wed, 11 May 2005 13:21:38 +0000 (GMT)
Received: from ice.42.org (ice.42.org [194.77.3.162])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 4ACAC43D79; Wed, 11 May 2005 13:21:38 +0000 (GMT)
	(envelope-from sec@42.org)
Received: by ice.42.org (Postfix, from userid 1000)
	id 906B5549A; Wed, 11 May 2005 15:21:37 +0200 (CEST)
Message-Id: <20050511132137.906B5549A@ice.42.org>
Date: Wed, 11 May 2005 15:21:37 +0200 (CEST)
From: Stefan `Sec` Zehl <sec@42.org>
Reply-To: Stefan `Sec` Zehl <sec@42.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: nork@FreeBSD.org
Subject: xpdf honors no-copy flag of .pdf file
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         80895
>Category:       ports
>Synopsis:       xpdf honors no-copy flag of .pdf file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 11 13:30:02 GMT 2005
>Closed-Date:    Wed May 11 15:22:04 GMT 2005
>Last-Modified:  Wed May 11 15:22:04 GMT 2005
>Originator:     Stefan `Sec` Zehl
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
>Environment:
System: FreeBSD ice 4.10-STABLE FreeBSD 4.10-STABLE #19: Wed Nov 17 18:01:41 CET 2004 root@ice:/export/obj/export/src/sys/ICE i386


	
>Description:

Some pdf files contain a flag to prohibit copy and paste of text. xpdf by
default honors that flag which can be very inconvinient.

	
>How-To-Repeat:
	
>Fix:

Apply this patch:

If necessary, this could be made a commandline option.


--- xpdf/XRef.cc.org	Thu Jan 22 02:26:45 2004
+++ xpdf/XRef.cc	Fri Apr 29 12:15:57 2005
@@ -803,6 +803,7 @@
   // this flag has to be set *after* we read the O/U/P strings
   encrypted = encrypted1;
 
+  permFlags = defPermFlags;
   return ret;
 }
 #else

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Wed May 11 15:21:43 GMT 2005 
State-Changed-Why:  
I'm quite sure authors have reasons to honor this flag. :) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80895 
>Unformatted:
