you can also just do

pdf2swf -I test.pdf test.log

why don't you think it's not the right way?
that log gets written quite fast even on large pdf files.
and line by line parsing is always more efficient (memory-wise) than reading 
the full file at once.

Am 08.12.2009 um 19:58 schrieb Chris Pugh:

> 2009/12/8 Shahid Faiz <shahid.f...@gmail.com>:
>> Hi,
>> 
>> I am using swftools for converting PDF to SWF. In my case, I need to know
>> number of pages and width/height of any page in PDF. Right now I execute
>> pdf2swf -I command and then parse its output line by line which I feel isn't
>> the right way specially for large files. Is there any other way of getting
>> this information?
>> 
>> One possible way could be getting this information in one line.
>> 
>> Thanks,
>> Shahid Faiz
> 
> Would piping the output information to file be a possible option?  As in,
> 
>   pdf2swf -I test.pdf > pagelist
> 
> Surely multiple lines are preferable to one long jam packed string?
> Not that you couldn't remove the LF(CR) and
> replace with another separator if you really wanted to.
> 
> HTH.
> 
> Regards,
> 
> 
> Chris.
> 
> 

-- 
Freundliche Grüße,
Ralf Vitasek

TQsoft GmbH
Ihre Visionen, unsere Lösungen.

--------------------------------------------------------------------

Postanschrift:
Hauptstraße 35, D-55595 Spabrücken, Germany

Besucheradresse:
Brunnenstraße 3, D-10119 Berlin, Germany

Geschäftsführer:
Yves Rausch, Robert Bruch

Handelsregister: HRB 4344
Amtsgericht: Bad Kreuznach
Ust.Id.Nr.: DE 217658862

Tel.: +49 (6706) 9130 0
Fax.: +49 (800) FAXTQSOFT
Web : http://www.tqsoft.de

--------------------------------------------------------------------
Der Inhalt dieser Nachricht sowie sämtliche Anhänge sind vertraulich
und ausschließlich für den Adressaten bestimmt. Jeder Gebrauch durch
Dritte ist verboten.  Falls Sie die Daten irrtümlich erhalten haben,
informieren  Sie bitte sofort  den Absender und vernichten Sie diese
Nachricht.
Aus Rechts- und Sicherheitsgründen ist die in dieser Nachricht gege-
bene Information nicht rechtsverbindlich.    Eine rechtsverbindliche
Bestätigung reichen wir Ihnen gerne auf Anforderung in schriftlicher
Form nach.

This message is confidential  and intended solely for the use by the
addressee.   Any use of this message by a third party is prohibited.
If you received this message in error, please contact the sender and
delete the message from any computer and data carrier.
--------------------------------------------------------------------

Reply via email to