26

Re: Functional Cross-Reference in PDF

Still this warning:

Warning! The following errors must be corrected before your message can be posted:
The selected file was too large to upload. The server didn't allow the upload.

27

Re: Functional Cross-Reference in PDF

Problem is on server return -> 413 Request Entity Too Large

So put your code to github, and create tag after you can import big files under the tag, I don't know the limit size?

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

28

Re: Functional Cross-Reference in PDF

i got a bit of time. Here is the link

https://github.com/Kellermorph/QuerverweiseAppImage

i hope that i've done evertything right and it's working. It's my first time.

29

Re: Functional Cross-Reference in PDF

Please put your code on Github if you can, for us it's more esay to see which code changes!

It is very easy if you have git, ssh, etc on your setup, but I remenber you use macOS, so no problem!

On Terminal get your github repository

git clone https://github.com/Kellermorph/QuerverweiseAppImage.git

Now work in QuerverweiseAppImage folder with your IDE as usual,
but if you want use terminal:


for adding files or files changed use

git add  file_name  
git diff

what files was added or removed.

- it is removed
+ it is added

For upload your changes to your online Github branch, it's very easy.

git push

For refreshing your local repository.

git pull

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

30

Re: Functional Cross-Reference in PDF

The Code ist there. Its called "Querverweise.py".

Or did i Miss understand Something?

Btw i'm using Linux Mint.

31

Re: Functional Cross-Reference in PDF

Kellermorph wrote:

Or did i Miss understand Something?

Same for me ....,
in first you talk avout QET 's code, now I see a python file, it 's me or then I need to return to bed for rest?

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

32

Re: Functional Cross-Reference in PDF

I can reassure you, Laurent:
I understood that differently, too!

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

33

Re: Functional Cross-Reference in PDF

Maybe it's also due to my poor English. I apologize for that.
I had first tried the source code via chatgpt. That was not successful. PLC-User then asked me to compile the code myself and give it a try. But in my current situation this is too complicated / time-consuming. That's why I've been looking for an alternative that can at least temporarily help me and possibly some others. I have written a small Python program (with the help of ChatGPT), which searches a finished exported circuit diagram (PDF) for cross-references and then links them. However, only to the page and not directly to the component.

Translated with DeepL.com (free version)

34

Re: Functional Cross-Reference in PDF

@scorpio810:

scorpio810 wrote:

(...) forgot to Refresh hooks in attachments plugin....I'm tired!!!

Something's wrong with the forums' attachments, Laurent!
This afternoon, I attached a file and it was marked as "not allowed to download"
And now I don't see any attachment in the forum!

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

35

Re: Functional Cross-Reference in PDF

@plc-user,
I was able to fix my error...I re-imported the attached files from the rsnapthot backup and on the server for SQL database with phpMyAdmin I re imported the old ‘punbb_attach_files’ table for recreate these ‘indexes!

But the last backup was made yesterday at 15h00, so please put again your script, many sorry.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

36

Re: Functional Cross-Reference in PDF

@scorpio810:
It's not just about the Registry-script:
It seems that many attachments are lost somehow!

If you look at this post from 20. February:
https://qelectrotech.org/forum/viewtopi … 099#p21099

There should be a png as attachment, but there is only a link!
When I follow the link, it says:

Bad request. The link you followed is incorrect or outdated.

Same here with post from 10. March
https://qelectrotech.org/forum/viewtopi … 220#p21220

Bad request. The link you followed is incorrect or outdated.

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

37 (edited by plc-user 2025-03-23 00:21:14)

Re: Functional Cross-Reference in PDF

plc-user wrote:

Auch, wenn Du den Text als Link markierst und den Text als Ziel-Adresse definieren kannst:
Das Ziel muss auch wissen, daß es Ziel ist, (...)

In the meantime, I have written a code that creates a position list with links and targets in the print module that can be used to insert PDF links.
I just haven't found anything in the Qt docs that explains what a link or a corresponding target should look like so that it works in the PDF file!

***** find positions for PDF-internal links...
XRef from page 3 QPoint(1380,620) to page 4 QPoint(120,440)
XRef from page 3 QPoint(1380,770) to page 4 QPoint(120,90)
XRef from page 3 QPoint(1380,640) to page 4 QPoint(120,420)
XRef from page 3 QPoint(1380,600) to page 4 QPoint(120,400)
XRef from page 3 QPoint(1380,790) to page 4 QPoint(120,110)
XRef from page 4 QPoint(120,90) to page 3 QPoint(1380,770)
XRef from page 4 QPoint(1320,90) to page 5 QPoint(120,90)
XRef from page 4 QPoint(120,110) to page 3 QPoint(1380,790)
XRef from page 4 QPoint(120,440) to page 3 QPoint(1380,620)
XRef from page 4 QPoint(1320,110) to page 5 QPoint(120,110)
XRef from page 4 QPoint(120,400) to page 3 QPoint(1380,600)
XRef from page 4 QPoint(120,420) to page 3 QPoint(1380,640)
XRef from page 5 QPoint(1380,90) to page 6 QPoint(120,90)
XRef from page 5 QPoint(120,90) to page 4 QPoint(1320,90)
XRef from page 5 QPoint(1380,110) to page 6 QPoint(120,110)
XRef from page 5 QPoint(120,110) to page 4 QPoint(1320,110)
XRef from page 6 QPoint(120,110) to page 5 QPoint(1380,110)
XRef from page 6 QPoint(1380,270) to page 8 QPoint(110,180)
XRef from page 6 QPoint(1380,440) to page 8 QPoint(110,440)
XRef from page 6 QPoint(1380,410) to page 8 QPoint(110,410)
XRef from page 6 QPoint(1380,240) to page 8 QPoint(110,210)
XRef from page 6 QPoint(120,90) to page 5 QPoint(1380,90)
XRef from page 8 QPoint(110,440) to page 6 QPoint(1380,440)
XRef from page 8 QPoint(110,180) to page 6 QPoint(1380,270)
XRef from page 8 QPoint(110,410) to page 6 QPoint(1380,410)
XRef from page 8 QPoint(110,210) to page 6 QPoint(1380,240)

There are also additional constraints such as fitting on the page or the print area. "Automagic" zoom factors are used here, which also have to be applied to the positions of the links and targets.

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

38

Re: Functional Cross-Reference in PDF

Hallo plc-user!

You could share a patch?

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

39 (edited by plc-user 2025-03-23 21:20:04)

Re: Functional Cross-Reference in PDF

Based on the qt6-make branch with some more cleanup regarding Qt version checks.

By the way: I have to take a closer look at git-branches. How to use them and so ...  nomicons/wink

Post's attachments

Attachment icon projectprintwindow.tar.xz 7.28 kb, 13 downloads since 2025-03-23 

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !