PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: HTML to RTF conversion problem (trial version)
   PostPosted: 05 May 2020, 11:18 
Hello,
I'm using PDML 3.11.4, trying to convert HTML to RTF but for some reason it keeps converting to PDF and naming the file RTF. Using the demo, double clicking pd4ml_demo.jar, the problem is the same.

The code I'm using:

Code:
FileOutputStream fos = new FileOutputStream(new File("data/output.rtf"));
PD4ML pd4ml = new PD4ML();
pd4ml.outputFormat(PD4Constants.RTF);
pd4ml.enableDebugInfo();
pd4ml.render("file:data/test.html", fos);
fos.flush();
fos.close();


The output is:

version: PD4ML 3114 (eval)
loading file:data/test.html [13ms]
new parse attempt with: UTF8
loading file:data/test.html [3ms]
done in 4121ms.


The RTF generated file starts with:

%PDF-1.4
%Çåôåð
1 0 obj
<<
/Filter /FlateDecode
/Length 2638
>>
stream


  Subject: Re: HTML to RTF conversion problem (trial version)
   PostPosted: 06 Jun 2020, 16:36 
RTF output is supported by PD4ML Pro (and derived). You obviously use PD4ML Std.



[Reply]     [ 2 posts ] 

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share