Archives April 2012

Adlibre's Open Source Document Management Software - a sneak preview of new UI

I'm pleased to announce that we've been very busy at Adlibre working on the public release of the Adlibre DMS document management system. It's not yet up on Adlibre's github page, but it will be there very soon...

Unlike other document management software, we've built this to be Open and Scalable right from the get-go. So it's 100% open source, and has a flexible plugin architecture, so you can easily adjust the software to your requirements.

We've taken the view that document archiving in a business should be secure and ubiquitous. A document ...

— Andrew


OS X won't sleep on power

Today I came across an issue where a Mac running OS X wouldn't sleep on power, but would sleep fine when on battery. The root cause was a stuck print job in the printer queue. Read on for instructions on how to troubleshoot power and sleep issues on OS X.

In OS X the pmset -g assertions command gives you a summary of the power management assertions in affect.

bob@mymac:~$ pmset -g assertions
22/04/12 12:13:18 PM AE 
Assertion status system-wide:
   ChargeInhibit                           0
   PreventUserIdleDisplaySleep             0
   PreventUserIdleSystemSleep              0
   NoRealPowerSources_debug                0
   CPUBoundAssertion                       0
   EnableIdleSleep                         1
   PreventSystemSleep                      1 ...

— Andrew


Automatically print a PDF generated with ReportLab using JavaScript

It seems everyone is asking how to embed JavaScript in a PDF created with ReportLab.

Google also use this PDF feature to allow for printing of proprietary office documents from their Gmail service. Google's method is somewhat different and they bind the JavaScript to the first object in the document and trigger it by referencing it with the Names entity as shown below.

%PDF-1.4
%âãÏÓ
1 0 obj
<</S/JavaScript/JS(this.print\({bUI:true,bSilent:false,bShrinkToFit:true}\);)>>
endobj
2 0 obj
<</Names[(0000000000000000) 1 0 R]>>
endobj
3 0 obj

I was not able to use the ...

— Andrew


Daily archives

Site theme originally by styleshout.com