Forum Replies Created

Viewing 15 posts - 421 through 435 (of 583 total)
  • Author
    Posts
  • #28207

    This is a common problem with MemoryStream usage in code ported from java.

    Try this workaround (it works fine for me):
    http://connect.microsoft.com/VisualStudio/feedback/details/164680/streamwriter-incorrectly-disposes-underlying-stream
    Basically decorate the underlying memory stream (the argument to StreamWriter) as:
    streamWriter(new NonDisposingStreamDecorator(memoryStream))

    Alex

    #28206

    Exactly the same thing happens to me

    in reply to: Error HTTPS on MS Internet Explorer 7
    #28535

    It works fine.

    Thanks!

    #28532

    is it better if i contact you via email directly to support pd4ml com?

    #28531

    PD4ML Java Library Volume License

    #28529

    Hi,

    We have already implemented PDF generation using JSP taglib and everything works just fine, but right now somebody wants pictures instead of PDF files, and is somehow difficult for us to switch now to Java method.
    If there is any possibility from your side to add such a feature in the taglib implementation will be wonderful.
    I mention that we have bought already PD4ML license from you.
    If possible for you to make such a change, how time do you think will take untill we can use this feature?

    Best regards,
    Valeriu

    #28041

    Hi PD4ml,

    any hope about this?

    in reply to: not showing second header in PDF
    #27607

    We are using 371b1 Pro (Trial), and we does encountered the mentioned ‘double header’ issue.

    On our side, I generate the webpage with JSP, and assign header using JAVA code. As we try to print our paperwork on an A4 page in landscape with 2 columns, so as to simulate 2 A5 printout side by side.

    The header has 100px tall but it seems to spare 200px tall. The header is not duplicated itself, just left a white space below itself.

    And the header is not shown except page 1.

    I does turn on the enableSmartTableBreak(true), while header contains a table. The height of the header is set to -1 so as to let it decide the height automatically.

    Is there any incorrect setting I need to take care? Does my given information enough for you to check out what is wrong?

    in reply to: How Split a Table Header In Each Page
    #28221

    Does this valid in PD4ML if I wish a particular block not to be broken:

    div{page-break-inside: avoid}

    in reply to: How Split a Table Header In Each Page
    #28219

    Here this is the HTML that I try to print using PD4ML:
    download fromdropbox:
    http://dl.dropbox.com/u/9697160/PackNote.htm
    I applied page-break-inside:avoid in tr with class ‘noBreak’

    When I set enableSmartTableBreaks(false); or not apply the statement, it can split table without spliting table tr row, just the table header does not repeat.

    When I set enableSmartTableBreaks(true); as the table cannot fit completely in the first page, it completely moved to the second page. leaving the first page with blank area.

    PD4ML is great in helpping us developing our print out function but just this spliting not yet fulfill our print test. Really look forward to see whether it is because of my table html / css or JAVA set wrongly.

    The ver of PD4ML we used: 3701b1 demo (we need to see PD4ML fulfill our test in order to buy the volumn licenses)
    code for html generation: JAVA/JSP
    how we use pd4ml: we build jsp report and use PD4ML to handle the print by mean of converting the built pdf file to bytearray and send to our printer.

    in reply to: How Split a Table Header In Each Page
    #28218

    Previous post typo mistable, it should be
    enableSmartTableBreaks(true);

    in reply to: How Split a Table Header In Each Page
    #28217

    I have the following CSS and table html

    tr.noBreakCell{
    page-break-inside:avoid;
    }

    <table>
    <tr>
    <th>header 1</th>
    <th>header 2</th>
    <th>header 3</th>
    <th>header 4</th>
    </tr>
    <tr class='noBreakCell'>
    <td>cell 1</td>
    <td>cell 2</td>
    <td>cell 3</td>
    <td>cell 4</td>
    </tr>
    <tr class='noBreakCell'>
    <td>cell 1</td>
    <td>cell 2</td>
    <td>cell 3</td>
    <td>cell 4</td>
    </tr>
    ...
    <tr class='noBreakCell'>
    <td>cell 1</td>
    <td>cell 2</td>
    <td>cell 3</td>
    <td>cell 4</td>
    </tr>
    </table>

    I have a number of tr row with class = noBreakCell, I found that when I not use:
    pd4mlObj.enableSmartTableSplit(true);

    the table is break while row does not break inside, this is fine.

    But I try to have the table header repeat on different page, it turns out that the whole table is being moved to the next page instead of splitting into multiple page, did I use anything wrongly?

    in reply to: Dynamic font substitution logic does not work for me?
    #28513

    @PD4ML wrote:

    In order to find an appropriate font to display a text string, PD4ML walks the following lists:

    private static String[] serifFallback = new String[] {
    "Times New Roman",
    "MS Mincho",
    "MingLiU",
    "SimSun",
    "Mangal",
    "David",
    "Batang",
    "Wingdings",
    "Symbol",
    "Lucida Sans Regular",
    };
    
    private static String[] sansFallback = new String[] {
    "Arial",
    "MS Gothic",
    "MingLiU",
    "SimSun",
    "Mangal",
    "David",
    "Gulim",
    "Wingdings",
    "Symbol",
    "Lucida Sans Regular",
    };
    
    private static String[] monoFallback = new String[] {
    "Courier New",
    "MS Gothic",
    "MingLiU",
    "SimSun",
    "Mangal",
    "David",
    "GulimChe",
    "Wingdings",
    "Symbol",
    "Lucida Sans Regular",
    };

    I guess, in your case an existence of SimSun among available fonts should help.

    Thanks, this was very very helpful – I’d sure go insane without this information!
    However, the paths to fonts and pd4fonts.properties have to be monitored and corrected carefully. Even the https://pd4ml.com/examples.zip I downloaded did not work in Linux nor in Windows. I had to set the absolute paths to files in run.sh, and then it worked. I suppose the person(s) who made the example were working in root directory, or something like that, and that therefore it worked for them.

    Also, setting of the fallback fonts would be great option in the future, but at the moment it can be easily hacked – if you do not want to/cannot use some font from the list above, simply change in pd4fonts.properties the line of some existing font

    #this is an autogenerated file. please remove manually any references to copyrighted fonts
    #Tue Apr 19 06:51:26 GMT-07:00 2011
    # font.dir.location=fonts
    KaiTi_GB2312=SIMKAI.TTF

    change KaiTi_GB2312 to some font from the hardcoded list
    #this is an autogenerated file. please remove manually any references to copyrighted fonts
    #Tue Apr 19 06:51:26 GMT-07:00 2011
    #font.dir.location=fonts
    SimSun=SIMKAI.TTF

    and everything will work fine.

    in reply to: Dynamic font substitution logic does not work for me?
    #28512

    I am trying with version 370fx2. the following html containing chinese text works .

    <html>
    <head>
    <meta http-equiv=Content-Type content="text/html; charset=utf-8">
    </head>
    <body>
    常常有不同的方法來寫同樣的漢字,這些被統。有些差異是由於性格的簡化,而有些則是純粹的字形差異,如中風造型。在造型的招用的明朝風格的字體來自康熙字典中使用。在大陸中
    
    
    </body>
    </html>

    However with Japanese html it does not works

    <html>
    <head>
    <meta http-equiv=Content-Type content="text/html; charset="utf-8">
    </head>
    <body>
    
    煙草
    
    </body>
    </html>

    I am getting the following in the logs

    version: PD4ML 370fx2 DMS Pro
    not yet in cache: file:D:/examples/pd4fonts.properties
    'serif' is not in pd4fonts.properties file
    reject TTF lookup for: 'serif'
    not yet in cache: file:C:/WINDOWS/Fonts/times.ttf
    read 'times new roman' from file:C:/WINDOWS/Fonts/times.ttf
    not yet in cache: file:C:/WINDOWS/Fonts/MSMINCHO.TTF
    read 'ms mincho' from file:C:/WINDOWS/Fonts/MSMINCHO.TTF
    not yet in cache: file:C:/WINDOWS/Fonts/mingliu.ttc
    read 'mingliu' from file:C:/WINDOWS/Fonts/mingliu.ttc
    not yet in cache: file:C:/WINDOWS/Fonts/simsun.ttc
    read 'simsun' from file:C:/WINDOWS/Fonts/simsun.ttc
    not yet in cache: file:C:/WINDOWS/Fonts/mangal.ttf
    read 'mangal' from file:C:/WINDOWS/Fonts/mangal.ttf
    not yet in cache: file:C:/WINDOWS/Fonts/david.ttf
    read 'david' from file:C:/WINDOWS/Fonts/david.ttf
    not yet in cache: file:C:/WINDOWS/Fonts/batang.ttc
    read 'batang' from file:C:/WINDOWS/Fonts/batang.ttc
    not yet in cache: file:C:/WINDOWS/Fonts/wingding.ttf
    read 'wingdings' from file:C:/WINDOWS/Fonts/wingding.ttf
    not yet in cache: file:C:/WINDOWS/Fonts/symbol.ttf
    read 'symbol' from file:C:/WINDOWS/Fonts/symbol.ttf
    not yet in cache: file:C:/WINDOWS/Fonts/lsans.ttf
    read 'lucida sans regular' from file:C:/WINDOWS/Fonts/lsans.ttf
    done in 2312ms.
    done.

    Am I missing something here? And one more question, do we need to specify <P> each time?

    @PD4ML wrote:

    In order to find an appropriate font to display a text string, PD4ML walks the following lists:

    private static String[] serifFallback = new String[] {
    "Times New Roman",
    "MS Mincho",
    "MingLiU",
    "SimSun",
    "Mangal",
    "David",
    "Batang",
    "Wingdings",
    "Symbol",
    "Lucida Sans Regular",
    };
    
    private static String[] sansFallback = new String[] {
    "Arial",
    "MS Gothic",
    "MingLiU",
    "SimSun",
    "Mangal",
    "David",
    "Gulim",
    "Wingdings",
    "Symbol",
    "Lucida Sans Regular",
    };
    
    private static String[] monoFallback = new String[] {
    "Courier New",
    "MS Gothic",
    "MingLiU",
    "SimSun",
    "Mangal",
    "David",
    "GulimChe",
    "Wingdings",
    "Symbol",
    "Lucida Sans Regular",
    };

    I guess, in your case an existence of SimSun among available fonts should help.

    in reply to: Dynamic font substitution logic does not work for me?
    #28510

    Tried with multiple versions of PD4ML with no result.

Viewing 15 posts - 421 through 435 (of 583 total)