PDF Generating Tool Support Forum

HOME   Login   Register    Search




Post a reply
Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are OFF
Disable BBCode
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the Board Administrator.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - HTML to RTF conversion problem (trial version)
Post subject:  Re: HTML to RTF conversion problem (trial version)
RTF output is supported by PD4ML Pro (and derived). You obviously use PD4ML Std.
    Post Posted: 06 Jun 2020, 16:36
 
Post subject:  HTML to RTF conversion problem (trial version)
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
    Post Posted: 05 May 2020, 11:18
 


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