• (using latest WPDF 3.31 version)

    I am currently experimenting with VERY large paper sizes in WPDF.

    The document I am currently creating is roughly 18000x1100 units. The contents are very complex. I use the screen's hdc (96 dpi) as reference for the canvas because I read that the PDF coordinate system is limited to 32000 units. It is not nice, but if it really has to be, I can live with the small resolution.

    However:

    Upon calling wpdf.endpage, I get the following general protection fault:

    [3484] Zugriffsverletzung bei Adresse 04D838A6 in Modul 'wpdf300a.dll'. Lesen von Adresse 05B2E248 (4536)

  • Hello Julian,

    I am aware of the high-res mode (IIRC it divides the coordinates by 10, which would give me only 60 dpi since my reference printer has 600 dpi) .
    However, I really need as many dpi as I can get, therefore I'd rather use the 96 dpi which the screen hdc gives me. A maximum size of 320" is just about right for me (oil well graphic, drilled 6000 m deep, scale 1:1000) .


    I'll try and produce an EMF plus test application which I can send you.

  • Hello mr Ziersch,

    Yes, the pages are huge.

    But this is precisely what my customers (on oil well sites) want.
    They really want ONE SINGLE continuous page with NO page
    breaks and complain bitterly because I can't deliver that yet.
    They get similar logs from other companies and want to compare
    them side-by-side on the screen and make annotations in these
    logs using Adobe Acrobat. Also, the logs are printed on huge
    Hewlett-Packard inkjet plotters that handle this page size (5 metres
    or so) with ease.

    I realize that PDF has a 32k limit in its coordinate space but at a lower
    resolution of 72, 96 or 144 dpi that should easily give me the 5-6 m
    I need. The advantage of PDF (and EMF) is that the font resolution is
    independant of the graphic resolution so the fonts come out OK even
    at a lower graphic resolution.

    By the way, the freeware printer driver CutePDF can do all of this!!!
    I can produce HUGE plots using CutePDF and the resulting PDF files
    are only 6 mb or so and display fine using either Adobe or Foxit PDF.
    But I'd rather do it using WPDF (because in that case, I can calculate and
    set the page size automatically. In CutePDF, the user has to set it manually).


    Your idea of rendering the page as one huge bitmap and feeding it to WPDF
    is really not feasable because it has two side effects:

    1 - the customer cannot select and copy text from the pdf

    2 - I would have to INCREASE the resolution to 300 DPI to make the fonts look
    acceptable on the printout. The file would be huge and I would hit the 32k
    limit of the coordinate system after only 2.5 metres.


    I would be grateful if you would fix the buffer overflow/gpf in WPDF.
    A page size of a dozen megabytes or so is really no problem for today's computers.