It is currently Tue Oct 20, 2020 12:48 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 75 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Thu Dec 05, 2019 8:04 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Bugfixes

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Thu Dec 05, 2019 4:56 pm 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1782
Location: Uttoxeter, UK
@Thorsten1867,
Thank you.

_________________
DE AA EB


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Mon Dec 16, 2019 8:49 pm 
Offline
User
User

Joined: Fri Dec 06, 2013 11:57 am
Posts: 54
Hi,

I found other bugs:

1. Line 3664: PDF()\Page\Y = PDF()\Margin\Right
I think, that the Y coordinate should be set with the Top Margin and not the Right Margin.

2. In the docs it says for SetOpenAction 'Zoom in Prozent (z.B. "50%")'
Setting Zoom var to "100%" gives me a PDF with 6400% view scale and "50%" gives me 5000%, setting Zoom simply to "1" shows the PDF in 100% view scale, so I think percentage is the wrong unit.

Greetings, Hoerbie


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Tue Dec 17, 2019 1:04 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Bugfixes

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Wed Dec 18, 2019 9:58 am 
Offline
User
User

Joined: Fri Dec 06, 2013 11:57 am
Posts: 54
Thanks, but with your fix of the % bug, now you killed the use of at line 442ff predefined settings of SetOpenAction:
Code:
  ;{ ----- Zoom: SetOpenAction() -----
  #PageTop   = "PageTop"
  #FullPage  = "FullPage"
  #PageWidth = "PageWidth"
  ;}

The reworked lines 4560ff
Code:
      Factor = Val(RTrim(Zoom, "%")) / 100
      PDF()\Catalog\OpenAction\Zoom = StrF(Factor, 2)

should be changed to something like this (untested):
Code:
      If Zoom = #PageTop Or Zoom = #FullPage Or Zoom = #PageWidth
        PDF()\Catalog\OpenAction\Zoom = Zoom
      Else
        Factor = Val(RTrim(Zoom, "%")) / 100
        PDF()\Catalog\OpenAction\Zoom = StrF(Factor, 2)
      EndIf 


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Wed Dec 18, 2019 12:44 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Bugfix

@hoerbie
You're right, I changed it in the wrong place. Please try it again.

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Thu Jan 30, 2020 9:43 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Update: PDF::GetStringHeight() added

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Sun Mar 15, 2020 2:43 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Apr 26, 2003 2:15 pm
Posts: 895
Location: Cuernavaca, Mexico
Thorsten...

I took your pbPDF help file pbPDF-Doku_DE.pdf and converted it to English..

1 - I dropped the document unto: https://pdf2docx.com/

2 - I dropped this converted document unto: https://www.deepl.com/Translator

3 - I opened the document in Microsoft Word and saved it as a PDF.

Now I have an English version of a German Help file... cool. :mrgreen:

_________________
- It was too lonely at the top.

Current Machine: Win 10 Pro 64-bit, Dual Xeon E5-2670, 64 gigs ram, Geforce GTX 1660 Ti w/6 gigs ram


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Sun Mar 15, 2020 3:02 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Apr 26, 2003 2:15 pm
Posts: 895
Location: Cuernavaca, Mexico
Thorsten,

Just noticed that the command PDF::HeaderProcedure() is missing in the manual.

_________________
- It was too lonely at the top.

Current Machine: Win 10 Pro 64-bit, Dual Xeon E5-2670, 64 gigs ram, Geforce GTX 1660 Ti w/6 gigs ram


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Sun May 03, 2020 1:42 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Update: Conversion of incompatible PNGs

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Sun May 03, 2020 7:18 pm 
Offline
User
User
User avatar

Joined: Fri Jun 07, 2019 1:56 pm
Posts: 77
Hi Thorsten,

great piece of work, I tested it today. Unfortunately I cannot print a BMP, not as PDF:IMAGE, nor as PDF:IMAGEMEMORY. Do you see any chance to do that in future. In my programs I am working only with bmp-files (it's a MUST in the textile-industry)

Regards Rainer


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Mon May 04, 2020 12:23 pm 
Offline
User
User
User avatar

Joined: Fri Jun 07, 2019 1:56 pm
Posts: 77
Hi Thorsten,

need your help with

PDF:ImageMemory

In the manual there is something not clear: What is FileName.s and what is Name.s?

in the params there is only Name.s! What is Name.s really? Is it Name.s or FileName.s
For what are Name.s and/or FileName.s used if the image is already loaded into the memory?

Code:
from your manual PDF

PDF::ImageMemory
Syntax
ImageMemory(ID.i, Name.s, *Memory, MemSize.i, Format.i, X.f, Y.f, Width.f, Height.f, Link.i)

Beschreibung
Platziert an den angegebenen Koordinaten ein im Speicher abgelegtes Bild auf der Seite.
FileName
Dateiname (und Pfad) des entsprechenden Bildes
Name
Dateiname für das Bild im Speicher
*Memory
Pointer auf die Speicheradresse des Bildes
MemSize
Größe der Bilddaten im Speicher (Bytes)
Format
#Image_PNG
- 32 -
Befehlsübersicht
#Image_JPEG
#Image_JPEG2000
X [Default: #PB_Default]
Horizontale Position der Linie. (#PB_Default = aktuelle Position)
Y [Default: #PB_Default]
Vertikale Position der Linie. (#PB_Default = aktuelle Position)
Width [Default: #PB_Default]
Breite des Bildes festlegen. (#PB_Default = Orginalgröße)
Height [Default: #PB_Default]
Höhe des Bildes festlegen. (#PB_Default = Orginalgröße)
Link [Default: #False]
Von Links, Annotations oder Actions zurückgegebene LinkID.


I tried it with this without success.

Code:
DataSection
  TestImageMemory_Start:
  IncludeBinary "C:\Program Files\PureBasic\MySources\DiagonalRugs\Images\Designs\45_PP_90_DES_4.png"
  TestImageMemory_End:
EndDataSection

PDF::ImageMemory(#PDF, "MyPicture", TestImageMemory_Start, TestImageMemory_End - TestImageMemory_Start, PDF::#Image_PNG, 30, 30,100, 150, PDF::#NoLink) 


Please give a help

regards
Rainer


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Mon May 04, 2020 2:56 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Fri Apr 25, 2003 4:34 pm
Posts: 992
Location: Canada
PB_Rainer wrote:
Hi Thorsten,
need your help with
PDF:ImageMemory

In the manual there is something not clear: What is FileName.s and what is Name.s?



https://www.purebasic.fr/english/viewtopic.php?f=27&t=72031&start=30#p540281

_________________
Image Image


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Mon May 04, 2020 4:52 pm 
Offline
User
User
User avatar

Joined: Fri Jun 07, 2019 1:56 pm
Posts: 77
Thanks Thorsten.

Do you think you will fix it someday, and add BMP-format too?

Regards Rainer


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Mon May 04, 2020 5:50 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Paul wrote:
PB_Rainer wrote:
Hi Thorsten,
need your help with
PDF:ImageMemory

In the manual there is something not clear: What is FileName.s and what is Name.s?



https://www.purebasic.fr/english/viewtopic.php?f=27&t=72031&start=30#p540281
Filename ist die Bilddatei, die geladen wird.
Name ist der interne Name für das Bild, da er ohne den Filename bei Memory nicht ermittelt werden kann.

Gesendet von meinem BAH2-W19 mit Tapatalk

_________________
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 75 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye