It is currently Fri Oct 30, 2020 2:37 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 81 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Mon May 04, 2020 6:13 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
PB_Rainer wrote:
PDF:ImageMemory

Beachte, dass 32Bit und Interlaced bei PNG nicht unterstützt werden.
Ich habe bisher keinerlei Informationen finden können, ob und wie BMP in PDF eingebunden werden kann.

_________________
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: Tue May 05, 2020 9:43 am 
Offline
User
User
User avatar

Joined: Fri Jun 07, 2019 1:56 pm
Posts: 77
Thorsten1867 wrote:
PB_Rainer wrote:
PDF:ImageMemory

Beachte, dass 32Bit und Interlaced bei PNG nicht unterstützt werden.
Ich habe bisher keinerlei Informationen finden können, ob und wie BMP in PDF eingebunden werden kann.


Danke, ich habe jetzt einfach einen kleinen workaround gemacht.

Ich lade die BMP und sichere sie sofort als PNG 8BIT in ein Tempfile, welches sofort nach einbinden in die PDF gelöscht wird. Geht so schnell, daß man es gar nicht merkt. Also alles gut.

Rainer


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Tue May 05, 2020 12:05 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Habe mich auch mal an einem Workaround (ungetestet) versucht.

_________________
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: Tue May 05, 2020 1:48 pm 
Offline
User
User
User avatar

Joined: Fri Jun 07, 2019 1:56 pm
Posts: 77
Thorsten1867 wrote:
Habe mich auch mal an einem Workaround (ungetestet) versucht.


Danke Thorsten, BMP läuft einwandfrei! :D

Fehlt ja nur noch ImageMemory :wink: :lol:


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Tue May 05, 2020 2:07 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
PB_Rainer wrote:
Fehlt ja nur noch ImageMemory :wink: :lol:

Should actually work, too.
  • 1.) Catch image
  • 2.) Check whether it is PNG or BMP
  • 3.) Encode image

_________________
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: Tue May 05, 2020 5:48 pm 
Offline
User
User
User avatar

Joined: Fri Jun 07, 2019 1:56 pm
Posts: 77
Thorsten1867 wrote:
PB_Rainer wrote:
Fehlt ja nur noch ImageMemory :wink: :lol:

Should actually work, too.
  • 1.) Catch image
  • 2.) Check whether it is PNG or BMP
  • 3.) Encode image


Wow!
Will try tomorrow, that would be really great!

you're great!

Thanks
Rainer


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Wed May 06, 2020 9:11 am 
Offline
User
User
User avatar

Joined: Fri Jun 07, 2019 1:56 pm
Posts: 77
Thorsten1867 wrote:
PB_Rainer wrote:
Fehlt ja nur noch ImageMemory :wink: :lol:

Should actually work, too.
  • 1.) Catch image
  • 2.) Check whether it is PNG or BMP
  • 3.) Encode image


Hi Thorsten,
Tested it with PNG, works perfect.
Thanks
Rainer

P.s. for what does it need a filename? Filename with path?


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Wed May 06, 2020 11:51 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
PDF needs an internal filename without path

Gesendet von meinem Aquaris X2 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  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Sun May 10, 2020 5:55 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jan 28, 2005 11:53 pm
Posts: 125
Location: Germany
Hi Thorsten,

as I was struggling with InsertTOC() I suggest an improvement in this procedure:
Code:
      If PDF()\TOC()\Page >= Page
        Page$        = Str(PDF()\TOC()\Page +1)
      Else
        Page$        = Str(PDF()\TOC()\Page )
      EndIf


Greetings
LN

_________________
https://www.doerpsoft.org

Boost. Work. Efficiency.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Thu May 28, 2020 12:18 pm 
Offline
New User
New User

Joined: Mon Apr 27, 2020 12:57 pm
Posts: 3
Location: Russia
Hi Thorsten. Need help. Unicode U+0428 output a blank page.

PDF::SetFont(#PDF, "LucidaSans", "", 16)
PDF::Cell(#PDF, "Ш", #PB_Default, #PB_Default, #False, PDF::#NextLine)


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Wed Jun 03, 2020 10:37 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1265
Location: Germany
Only UTF-Characters 0 - 65535 are supported.

_________________
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 Jun 17, 2020 2:14 pm 
Offline
New User
New User

Joined: Mon Apr 27, 2020 12:57 pm
Posts: 3
Location: Russia
Thorsten1867 wrote:
Only UTF-Characters 0 - 65535 are supported.



0428 like included in 65535?:)


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Wed Jun 17, 2020 5:43 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 6259
Location: Wales, UK
...Make sure the font supports '0428'

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] pbPDF-Module
PostPosted: Sat Jun 20, 2020 2:25 pm 
Offline
New User
New User

Joined: Mon Apr 27, 2020 12:57 pm
Posts: 3
Location: Russia
IdeasVacuum wrote:
...Make sure the font supports '0428'


I usage a standart font Windows 7 'font l_10646.ttf' - Lucida Sans Unicode


Top
 Profile  
Reply with quote  
 Post subject: Moving inside the PDF File ; How to ?
PostPosted: Mon Oct 19, 2020 7:00 am 
Offline
Enthusiast
Enthusiast

Joined: Tue Oct 14, 2014 12:09 pm
Posts: 303
I don't know how to do the following:
I'm on page 2 of my PDF and would like to go back to Page One to add text at a defined position and then go back to Page Two and continue processing. Is this possible?


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 9 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