* Creation of PDF Oddly Differs on Ubuntu and Mac OS X
@ 2011-03-16 12:49 Raymond LeClair
2011-03-16 21:10 ` Raymond LeClair
0 siblings, 1 reply; 10+ messages in thread
From: Raymond LeClair @ 2011-03-16 12:49 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1.1: Type: text/plain, Size: 1098 bytes --]
All,
I am using ConTeXt to create a PDF for upload to Lulu.com.
I am getting the following exception using the LuLu Python publication API on Mac OS X 10.6.6 with Python 2.6.6 or 2.7.1:
ServiceError: Couldn't create Lulu project. '{"error_type": "LFilesystemException", "error_value": "shell command failed: rm -rf \'/opt/stable/stable/htdocs/items/volume_69/10290000/10290657\' 2>&1\\nrm: cannot remove directory `/opt/stable/stable/htdocs/items/volume_69/10290000/10290657/1/cover\': Directory not empty", "HTTPErrorCode": 500}'
Oddly, the exact same code works fine on Ubuntu 10.04 LTS with Python 2.6.5.
I have track down the issue to the difference between the _cover_ PDF created on Ubuntu with ConTeXt ver: 2009.11.26 16:28 MKIV and on Mac OS X with ConTeXt ver: 2010.05.24 13:05 MKIV, although the cover PDF generated on either platform appears correctly in Preview.
I have posted an archive that illustrates the issue at http://www.synterein.com/lulu_context_issues/lulu_context_issue_01.zip
Any wisdom out there? What should I look for next?
Ray.
978-621-5755
[-- Attachment #1.1.2: Type: text/html, Size: 1547 bytes --]
[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 3284 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Creation of PDF Oddly Differs on Ubuntu and Mac OS X
2011-03-16 12:49 Creation of PDF Oddly Differs on Ubuntu and Mac OS X Raymond LeClair
@ 2011-03-16 21:10 ` Raymond LeClair
2011-03-17 7:52 ` Taco Hoekwater
2011-03-18 19:51 ` PDF Version Selection Raymond LeClair
0 siblings, 2 replies; 10+ messages in thread
From: Raymond LeClair @ 2011-03-16 21:10 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1.1: Type: text/plain, Size: 2661 bytes --]
All,
I could have phrased my question better ... here is another attempt:
I use ConTeXt to generate a PDF for upload using the command "context filename" on either Mac OS X or Ubuntu. I have installed ConTeXt by installing a TeX Live distribution on each platform. The command completes without error on either platform. The PDFs open in Preview (a Mac OS X application for viewing PDFs) and appear to be correct, regardless of on which platform the PDFs were created. However, the upload of the PDF created on Mac OS X fails, while the upload of the PDF created on Ubuntu works.
So, there is something different about these two PDFs which I cannot determine by opening them in an application for viewing PDFs. But I do not know what is different, or how to find out.
I have posted an archive that illustrates the issue at http://www.synterein.com/lulu_context_issues/lulu_context_issue_01.zip
Any and all ideas would be appreciated.
Ray.
On Mar 16, 2011, at 8:49 AM, Raymond LeClair wrote:
> All,
>
> I am using ConTeXt to create a PDF for upload to Lulu.com.
>
> I am getting the following exception using the LuLu Python publication API on Mac OS X 10.6.6 with Python 2.6.6 or 2.7.1:
> ServiceError: Couldn't create Lulu project. '{"error_type": "LFilesystemException", "error_value": "shell command failed: rm -rf \'/opt/stable/stable/htdocs/items/volume_69/10290000/10290657\' 2>&1\\nrm: cannot remove directory `/opt/stable/stable/htdocs/items/volume_69/10290000/10290657/1/cover\': Directory not empty", "HTTPErrorCode": 500}'
>
> Oddly, the exact same code works fine on Ubuntu 10.04 LTS with Python 2.6.5.
>
> I have track down the issue to the difference between the _cover_ PDF created on Ubuntu with ConTeXt ver: 2009.11.26 16:28 MKIV and on Mac OS X with ConTeXt ver: 2010.05.24 13:05 MKIV, although the cover PDF generated on either platform appears correctly in Preview.
>
> I have posted an archive that illustrates the issue at http://www.synterein.com/lulu_context_issues/lulu_context_issue_01.zip
>
> Any wisdom out there? What should I look for next?
> Ray.
>
> 978-621-5755
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
[-- Attachment #1.1.2: Type: text/html, Size: 3828 bytes --]
[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 3284 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Creation of PDF Oddly Differs on Ubuntu and Mac OS X
2011-03-16 21:10 ` Raymond LeClair
@ 2011-03-17 7:52 ` Taco Hoekwater
2011-03-17 8:01 ` Mojca Miklavec
2011-03-18 19:51 ` PDF Version Selection Raymond LeClair
1 sibling, 1 reply; 10+ messages in thread
From: Taco Hoekwater @ 2011-03-17 7:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 03/16/2011 10:10 PM, Raymond LeClair wrote:
>>
>> I am getting the following exception using the LuLu Python publication
>> API on Mac OS X 10.6.6 with Python 2.6.6 or 2.7.1:
>>
>> ServiceError: Couldn't create Lulu project. '{"error_type":
>> "LFilesystemException", "error_value": "shell command failed: rm -rf
>> \'/opt/stable/stable/htdocs/items/volume_69/10290000/10290657\'
>> 2>&1\\nrm: cannot remove directory
>> `/opt/stable/stable/htdocs/items/volume_69/10290000/10290657/1/cover\': Directory
>> not empty", "HTTPErrorCode": 500}'
As it says: "Directory not empty", perhaps you could look in the finder
or terminal to see what is still in there. I actually expect that
there is a Finder-specific file or folder there, which would mean that
the actual problem has nothing to do with the pdf itself, but just with
a difference between MacOSX and Ubuntu.
Best wishes,
Taco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Creation of PDF Oddly Differs on Ubuntu and Mac OS X
2011-03-17 7:52 ` Taco Hoekwater
@ 2011-03-17 8:01 ` Mojca Miklavec
2011-03-17 13:08 ` Raymond LeClair
0 siblings, 1 reply; 10+ messages in thread
From: Mojca Miklavec @ 2011-03-17 8:01 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Taco Hoekwater
On Thu, Mar 17, 2011 at 08:52, Taco Hoekwater wrote:
>
> As it says: "Directory not empty", perhaps you could look in the finder
> or terminal to see what is still in there. I actually expect that
> there is a Finder-specific file or folder there, which would mean that
> the actual problem has nothing to do with the pdf itself, but just with
> a difference between MacOSX and Ubuntu.
If that is true there is probably at least a file .DS_Store present on
Mac OS X (which Finder won't show).
Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Creation of PDF Oddly Differs on Ubuntu and Mac OS X
2011-03-17 8:01 ` Mojca Miklavec
@ 2011-03-17 13:08 ` Raymond LeClair
0 siblings, 0 replies; 10+ messages in thread
From: Raymond LeClair @ 2011-03-17 13:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1347 bytes --]
A Lulu developer was able to find out that the original error was coming out of the PDFLib library:
{"error_type":"PDFlibException","error_value":"Handle parameter or option of type 'page' has bad value 0"}
Does that mean anything to anyone?
On Mar 17, 2011, at 4:01 AM, Mojca Miklavec wrote:
> On Thu, Mar 17, 2011 at 08:52, Taco Hoekwater wrote:
>>
>> As it says: "Directory not empty", perhaps you could look in the finder
>> or terminal to see what is still in there. I actually expect that
>> there is a Finder-specific file or folder there, which would mean that
>> the actual problem has nothing to do with the pdf itself, but just with
>> a difference between MacOSX and Ubuntu.
>
> If that is true there is probably at least a file .DS_Store present on
> Mac OS X (which Finder won't show).
>
> Mojca
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 3284 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: PDF Version Selection
2011-03-16 21:10 ` Raymond LeClair
2011-03-17 7:52 ` Taco Hoekwater
@ 2011-03-18 19:51 ` Raymond LeClair
2011-03-18 21:00 ` Hans Hagen
1 sibling, 1 reply; 10+ messages in thread
From: Raymond LeClair @ 2011-03-18 19:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 405 bytes --]
Is it possible to select the PDF version that is produced by running "context file.tex"?
For example, running "context file.tex" produced "file.pdf" of PDF version _1.5_ on Ubuntu with ConTeXt ver: 2009.11.26 16:28 MKIV and of PDF version _1.6_ on Mac OS X with ConTeXt ver: 2010.05.24 13:05 MKIV.
I would like to produce PDF version _1.5_ on Mac OS X with ConTeXt ver: 2010.05.24 13:05 MKIV.
[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 3284 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: PDF Version Selection
2011-03-18 19:51 ` PDF Version Selection Raymond LeClair
@ 2011-03-18 21:00 ` Hans Hagen
2011-03-18 21:05 ` Aditya Mahajan
0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2011-03-18 21:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 18-3-2011 8:51, Raymond LeClair wrote:
> Is it possible to select the PDF version that is produced by running "context file.tex"?
>
> For example, running "context file.tex" produced "file.pdf" of PDF version _1.5_ on Ubuntu with ConTeXt ver: 2009.11.26 16:28 MKIV and of PDF version _1.6_ on Mac OS X with ConTeXt ver: 2010.05.24 13:05 MKIV.
>
> I would like to produce PDF version _1.5_ on Mac OS X with ConTeXt ver: 2010.05.24 13:05 MKIV.
just choose the relevant pdf/x version
http://wiki.contextgarden.net/PDFX
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: PDF Version Selection
2011-03-18 21:00 ` Hans Hagen
@ 2011-03-18 21:05 ` Aditya Mahajan
2011-03-18 21:41 ` Hans Hagen
2011-03-19 13:23 ` Raymond LeClair
0 siblings, 2 replies; 10+ messages in thread
From: Aditya Mahajan @ 2011-03-18 21:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, 18 Mar 2011, Hans Hagen wrote:
> On 18-3-2011 8:51, Raymond LeClair wrote:
>> Is it possible to select the PDF version that is produced by running
>> "context file.tex"?
>>
>> For example, running "context file.tex" produced "file.pdf" of PDF version
>> _1.5_ on Ubuntu with ConTeXt ver: 2009.11.26 16:28 MKIV and of PDF version
>> _1.6_ on Mac OS X with ConTeXt ver: 2010.05.24 13:05 MKIV.
>>
>> I would like to produce PDF version _1.5_ on Mac OS X with ConTeXt ver:
>> 2010.05.24 13:05 MKIV.
>
> just choose the relevant pdf/x version
>
> http://wiki.contextgarden.net/PDFX
I think that the OP just wants
\pdfminorversion=5
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: PDF Version Selection
2011-03-18 21:05 ` Aditya Mahajan
@ 2011-03-18 21:41 ` Hans Hagen
2011-03-19 13:23 ` Raymond LeClair
1 sibling, 0 replies; 10+ messages in thread
From: Hans Hagen @ 2011-03-18 21:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 18-3-2011 10:05, Aditya Mahajan wrote:
> On Fri, 18 Mar 2011, Hans Hagen wrote:
>
>> On 18-3-2011 8:51, Raymond LeClair wrote:
>>> Is it possible to select the PDF version that is produced by running
>>> "context file.tex"?
>>>
>>> For example, running "context file.tex" produced "file.pdf" of PDF
>>> version _1.5_ on Ubuntu with ConTeXt ver: 2009.11.26 16:28 MKIV and
>>> of PDF version _1.6_ on Mac OS X with ConTeXt ver: 2010.05.24 13:05
>>> MKIV.
>>>
>>> I would like to produce PDF version _1.5_ on Mac OS X with ConTeXt
>>> ver: 2010.05.24 13:05 MKIV.
>>
>> just choose the relevant pdf/x version
>>
>> http://wiki.contextgarden.net/PDFX
>
> I think that the OP just wants
>
> \pdfminorversion=5
that goes along with other settings so best use a standard that matches 1.5
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: PDF Version Selection
2011-03-18 21:05 ` Aditya Mahajan
2011-03-18 21:41 ` Hans Hagen
@ 2011-03-19 13:23 ` Raymond LeClair
1 sibling, 0 replies; 10+ messages in thread
From: Raymond LeClair @ 2011-03-19 13:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1358 bytes --]
Fantastic! This fixes my problem uploading documents to Lulu. Thank you. This has been one tough bug to track down.
On Mar 18, 2011, at 5:05 PM, Aditya Mahajan wrote:
> On Fri, 18 Mar 2011, Hans Hagen wrote:
>
>> On 18-3-2011 8:51, Raymond LeClair wrote:
>>> Is it possible to select the PDF version that is produced by running "context file.tex"?
>>> For example, running "context file.tex" produced "file.pdf" of PDF version _1.5_ on Ubuntu with ConTeXt ver: 2009.11.26 16:28 MKIV and of PDF version _1.6_ on Mac OS X with ConTeXt ver: 2010.05.24 13:05 MKIV.
>>> I would like to produce PDF version _1.5_ on Mac OS X with ConTeXt ver: 2010.05.24 13:05 MKIV.
>>
>> just choose the relevant pdf/x version
>>
>> http://wiki.contextgarden.net/PDFX
>
> I think that the OP just wants
>
> \pdfminorversion=5
>
> Aditya
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 3284 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-03-19 13:23 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-16 12:49 Creation of PDF Oddly Differs on Ubuntu and Mac OS X Raymond LeClair
2011-03-16 21:10 ` Raymond LeClair
2011-03-17 7:52 ` Taco Hoekwater
2011-03-17 8:01 ` Mojca Miklavec
2011-03-17 13:08 ` Raymond LeClair
2011-03-18 19:51 ` PDF Version Selection Raymond LeClair
2011-03-18 21:00 ` Hans Hagen
2011-03-18 21:05 ` Aditya Mahajan
2011-03-18 21:41 ` Hans Hagen
2011-03-19 13:23 ` Raymond LeClair
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).