Hi Arjen I should have been clearer. I am using HARU to create a pdf file, and using plplot to draw some charts into this file. The difficulty is that the plplot pdf driver currently creates a stand alone pdf file, with only the plot(s) in it.
So far I have modified pdf.c to take a HPDF_Doc and HPDF page handle through two calls to pl_cmd(PLESC_DEVINIT, handle). The driver then skips the file open/close operations, letting the user do the rest of the document through the HARU library. I have also made a similar change to the wingcc driver, using the same pl_cmd call to take a HWND to an existing window, and skipping the window setup / destruction code in the driver. To get this to work, I have also added a plinitdevice() method, which is just the first part of plinit(), so that pl_cmd() can be called between the set up of the driver dispatch table and the calling of the driver's init function. But I felt adding this extra method was neater than trying to pass pointers as command line arguments. Should I instead / as well submit the required changes to take a pointer through the command line? I have also added an command line option to set the pdf driver resolution, as the current driver assumes a 50" x 37.5" surface and scales it to the output, which becomes distorted if the output aspect ratio is not 4x3. But I have left the current functionality as the default in case someone is relying on the 50" x 37.5" dimensions. I also intend to extend the list of output page sizes to match those in the HARU library. What now? Should I just submit the patches through sourceforge, or apply to join the project and check the changes and some documentation into the repository? Regards, Alan ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel